[pitivi] Properly set the welcome dialog as transient for mainwindow



commit b7ae0f683d99629e94c2b4b882ada534af3b423d
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date:   Mon May 16 22:19:33 2011 -0400

    Properly set the welcome dialog as transient for mainwindow

 pitivi/application.py         |    1 -
 pitivi/ui/startupwizard.glade |    2 +-
 pitivi/ui/startupwizard.py    |    2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/application.py b/pitivi/application.py
index 9cd576d..67e7ae8 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -378,7 +378,6 @@ class StartupWizardGuiPitivi(FullGuiPitivi):
 
     def __init__(self, debug=False):
         FullGuiPitivi.__init__(self, debug)
-
         self.projectManager.newBlankProject()
 
     def _createGui(self):
diff --git a/pitivi/ui/startupwizard.glade b/pitivi/ui/startupwizard.glade
index 9a1e098..50f0386 100644
--- a/pitivi/ui/startupwizard.glade
+++ b/pitivi/ui/startupwizard.glade
@@ -10,7 +10,7 @@
     <property name="modal">True</property>
     <property name="window_position">center-on-parent</property>
     <property name="destroy_with_parent">True</property>
-    <property name="type_hint">dialog</property>
+    <property name="type_hint">normal</property>
     <property name="skip_taskbar_hint">True</property>
     <signal name="destroy_event" handler="_dialogCloseCb"/>
     <child>
diff --git a/pitivi/ui/startupwizard.py b/pitivi/ui/startupwizard.py
index 2b77ac8..d9be488 100644
--- a/pitivi/ui/startupwizard.py
+++ b/pitivi/ui/startupwizard.py
@@ -32,7 +32,6 @@ class StartUpWizard(object):
 
         self.window = self.builder.get_object("window1")
         self.window.connect("key-press-event", self._keypressCb)
-        self.window.set_transient_for(self.app.gui)
 
         chooser = self.builder.get_object("recentchooser2")
         # FIXME: gtk creates a combo box with only one item, but there is no
@@ -68,6 +67,7 @@ class StartUpWizard(object):
         self.hide()
 
     def show(self):
+        self.window.set_transient_for(self.app.gui)
         self.window.show()
         self.window.grab_focus()
 



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