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?
So I am looking into this bug to learn about openshot source code and so far I have realized that: set_transient_ for(parent) " which can modify the parent window. ject.get_ transient_ for()" is None in "openshot/ windows/ NewProject. py" when you run it the "__init__" method in calss "frmNewProject" set_position( gtk.WIN_ POS_CENTER_ ON_PARENT)
- The default position for new windows are center of the parent window, am I right?
- There is a method named "gtk.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.frmNewPro
- if that doesn't fix it then we can call this function after its parent have been set.
-- gtk.Window.
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.