[pitivi] mainwindow: Connect signals after restoring settings



commit 0873dd5133ff09e516e109259c27a2fd1e3b1932
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Thu Jan 31 23:00:39 2013 -0500

    mainwindow: Connect signals after restoring settings

 pitivi/mainwindow.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index f5192fd..2445bf9 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -360,8 +360,6 @@ class PitiviMainWindow(Gtk.Window, Loggable):
         """
         self.set_title("%s" % (APPNAME))
         self.set_icon_name("pitivi")
-        self.connect("delete-event", self._deleteCb)
-        self.connect("configure-event", self._configureCb)
         vbox = Gtk.VBox(False)
         self.add(vbox)
         vbox.show()
@@ -475,6 +473,11 @@ class PitiviMainWindow(Gtk.Window, Loggable):
         if allow_full_screen and self.settings.mainWindowFullScreen:
             self.setFullScreen(True)
 
+        # Connect the main window's signals at the end, to avoid messing around
+        # with the restoration of settings above.
+        self.connect("delete-event", self._deleteCb)
+        self.connect("configure-event", self._configureCb)
+
     def switchContextTab(self, tab=None):
         """
         Switch the tab being displayed on the second set of tabs,



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