← Back to team overview

linux-traipu team mailing list archive

[Bug 1131416] Re: Dialogs should open in the center of the openshot window not in the center of the screen

 

So I am looking into this bug to learn about openshot source code and so far I have realized that:
- The default position for new windows are center of the parent window, am I right?
- There is a method named "gtk.Window.set_transient_for(parent)" which can modify the parent window.
- so all we need to do is to set parent window of each new window correctly and they will be positioned correctly.
 -- for example the result of "self.frmNewProject.get_transient_for()" is None in "openshot/windows/NewProject.py" when you run      it the "__init__" method in calss "frmNewProject"
- if that doesn't fix it then we can call this function after its parent have been set.
 -- gtk.Window.set_position(gtk.WIN_POS_CENTER_ON_PARENT)

-- 
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to OpenShot Video Editor.
https://bugs.launchpad.net/bugs/1131416

Title:
  Dialogs should open in the center of the openshot window not in the
  center of the screen

Status in OpenShot Video Editor:
  Confirmed

Bug description:
  If you have two monitors that are registered as one big screen in the
  system. The openshot dialogs pops up in the center of the screen which
  meant they are spread over both monitors. Better it would be if
  dialogs are opened in the center of the openshot window.

  OpenShot version 1.4.3
  Ubuntu 12.04
  Kernel: 3.2.0-38-generic x86_64
  Melt: libmlt.so.0.7.7
  libmlt.so.4

To manage notifications about this bug go to:
https://bugs.launchpad.net/openshot/+bug/1131416/+subscriptions


References