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

Bug #1131416 reported by Bodo Bigalk
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
Confirmed
Low
Unassigned

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

Andy Finch (fincha)
Changed in openshot:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Amir Mohammadi (183-amir) wrote :

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)

So my question is how can we find the parent window? I mean I know that the parent window of New Project is the Main Window but is the main window available in code so I can set the parent of New Project window correctly?

Let me know what do you think please.

Revision history for this message
Olivier Girard (eolinwen) wrote :

Hi,
Yes for the first question.
It doesn't matter since we are switching of framework (i.e to Gtk at QT).
Thanks to QT, main windows will be style Dock window. Like this the user could use them like he would like if he want, knowing OS will be by default with one unique window.

Revision history for this message
Amir Mohammadi (183-amir) wrote :

Hi,
thanks for the info.
I didn't know that you were switching from Gtk to QT.
Also I could not find the code for openshot v2. I suppose it is private for now.
Anyways I was really hoping that I could contribute to this project as a way to gain experience.
I have two years of Python programming experience where I have done many automation task as well as numerical computing using Scipy and also some image processing and computer vision using OpenCV library in Python.
Also I am currently working on speech processing mainly on Speaker Adaptations in Statistical Speech Synthesis Systems.
I have done quite amount of video converting and editing before too using applications like MeGUI or VirtualDub, handBrake, etc.
If you could help me get started in this project I would appreciate it.

Revision history for this message
Olivier Girard (eolinwen) wrote : Re: [Openshot.bugs] [Bug 1131416] Re: Dialogs should open in the center of the openshot window not in the center of the screen
Download full text (4.4 KiB)

Hi,
You should follow our official blog : http://www.openshotvideo.com/
Parsing it, you 'll find a lot of informations about the future of
Openshot, what we are doing now, what OS 2.0.0 will offer, the
schedule,...... I assume that I don't give you the French version (my
blog). You should follow our Google + pages too.

>>>Also I could not find the code for openshot v2. I suppose it is private
for now.

Yes and no. The code which is private for now is for Libopenshot. But soon,
it will be free. After, we jump to the 1.4.4, Andy have make the main work,
it shouldn't take a lot of time. And after, we will start (officially)
working on OS 2.0.0. Officially, because, Andy and me are working on it
since a while, soon we have some free time to dedicate on it. Jonathan and
Justin are working on it now. It is why we are (Andy and me) here and on
our forum punctual. Unfortunately.
The code should be available by the daily PPA under if our users have too
much issues with, it could break all. We will be oblige to desactive it.
Anyway to my opinion, it will be available on Lanchpad.

>>>Anyways I was really hoping that I could contribute to this project as a
way to gain experience.

I have two years of Python programming experience where I have done many
automation task as well as numerical computing using Scipy and also some
image processing and computer vision using OpenCV library in Python.
Also I am currently working on speech processing mainly on Speaker
Adaptations in Statistical Speech Synthesis Systems.
I have done quite amount of video converting and editing before too using
applications like MeGUI or VirtualDub, handBrake, etc.

Your experience will be precious, anyway any active help is precious for
Open Source projects. BTW Interesting job. :-)

>>>If you could help me get started in this project I would appreciate it.
No worries. When the time will come, you should contact us at this address
: http://www.openshot.org/developers/
It will be better that you contact us than the opposite

Olivier.

2013/11/22 Amir Mohammadi <email address hidden>

> Hi,
> thanks for the info.
> I didn't know that you were switching from Gtk to QT.
> Also I could not find the code for openshot v2. I suppose it is private
> for now.
> Anyways I was really hoping that I could contribute to this project as a
> way to gain experience.
> I have two years of Python programming experience where I have done many
> automation task as well as numerical computing using Scipy and also some
> image processing and computer vision using OpenCV library in Python.
> Also I am currently working on speech processing mainly on Speaker
> Adaptations in Statistical Speech Synthesis Systems.
> I have done quite amount of video converting and editing before too using
> applications like MeGUI or VirtualDub, handBrake, etc.
> If you could help me get started in this project I would appreciate it.
>
> --
> You received this bug notification because you are a member of OpenShot
> Bugs, 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 scree...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.