[pitivi: 8/18] Fix StartupWizardGuiPitivi to show the wizard only when it should. Removed unnecessary show() calls



commit 6ada7de642954e62028a08b028443d741c924549
Author: Alex BÄ?luÈ? <alexandru balut gmail com>
Date:   Sun Jan 16 10:43:02 2011 +0100

    Fix StartupWizardGuiPitivi to show the wizard only when it should. Removed unnecessary show() calls from PitiviMainWindow.

 pitivi/application.py   |    2 ++
 pitivi/ui/mainwindow.py |    4 ----
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/application.py b/pitivi/application.py
index 7580752..5118119 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -359,8 +359,10 @@ class StartupWizardGuiPitivi(FullGuiPitivi):
 
         self.projectManager.newBlankProject()
 
+    def _createGui(self):
         self.projectManager.connect("new-project-loaded", self._quitWizardCb)
         self.wizard = StartUpWizard(self)
+        return FullGuiPitivi._createGui(self)
 
     def _quitWizardCb(self, unused_projectManager, uri):
         if uri.uri is not None:
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 74cfa3c..872cade 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -234,8 +234,6 @@ class PitiviMainWindow(gtk.Window, Loggable):
         else:
             self.webcam_button.set_sensitive(False)
 
-        self.show()
-
     def showEncodingDialog(self, project, pause=True):
         """
         Shows the L{EncodingDialog} for the given project Timeline.
@@ -503,8 +501,6 @@ class PitiviMainWindow(gtk.Window, Loggable):
         vbox.pack_start(ttb, expand=False)
         ttb.show()
 
-        self.show()
-
         if not self.settings.mainWindowShowMainToolbar:
             self.toolbar.props.visible = False
 



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