[pitivi] startupwizard: Instantiate the welcome dialog after mainwindow



commit 8fb84dfead196fdc64128d484138f308bf58af29
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Mon Aug 27 23:23:37 2012 -0700

    startupwizard: Instantiate the welcome dialog after mainwindow
    
    This will allow it to properly set_transient_for with mainwindow

 pitivi/application.py           |    2 +-
 pitivi/dialogs/startupwizard.py |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/application.py b/pitivi/application.py
index 7a29a00..42aa8e2 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -418,7 +418,6 @@ class StartupWizardGuiPitivi(FullGuiPitivi):
         self.projectManager.newBlankProject(False)
 
     def _createGui(self):
-        self.wizard = StartUpWizard(self)
         # Prevent the main window to go fullscreen because at least
         # the Metacity window manager will refuse to bring
         # the startup wizard window in front of the main window.
@@ -426,6 +425,7 @@ class StartupWizardGuiPitivi(FullGuiPitivi):
 
     def _showGui(self):
         FullGuiPitivi._showGui(self)
+        self.wizard = StartUpWizard(self)
         self.wizard.show()
 
 
diff --git a/pitivi/dialogs/startupwizard.py b/pitivi/dialogs/startupwizard.py
index bcae0cb..127d2a7 100644
--- a/pitivi/dialogs/startupwizard.py
+++ b/pitivi/dialogs/startupwizard.py
@@ -110,7 +110,6 @@ class StartUpWizard(object):
     def show(self):
         self.window.set_transient_for(self.app.gui)
         self.window.show()
-        self.window.grab_focus()
 
     def hide(self):
         self.window.hide()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]