[gnome-clocks] Move the show_all() caller side for clarity



commit 6d8a0ffc2d829c4974278af70092caf8d9dd7f2c
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Feb 3 12:55:44 2013 +0100

    Move the show_all() caller side for clarity

 gnomeclocks/app.py     |    3 ++-
 gnomeclocks/widgets.py |    1 -
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomeclocks/app.py b/gnomeclocks/app.py
index 1d8e6e8..eecbdc8 100644
--- a/gnomeclocks/app.py
+++ b/gnomeclocks/app.py
@@ -84,8 +84,9 @@ class Window(Gtk.ApplicationWindow):
         vbox.pack_start(self.toolbar, False, False, 0)
         vbox.pack_end(self.embed, True, True, 0)
 
-        self.add(vbox)
+        self.embed.show_all()
         vbox.show()
+        self.add(vbox)
 
     def _on_new_activated(self, action, param):
         view = self.views[self.notebook.get_current_page()]
diff --git a/gnomeclocks/widgets.py b/gnomeclocks/widgets.py
index a7c3327..59da907 100644
--- a/gnomeclocks/widgets.py
+++ b/gnomeclocks/widgets.py
@@ -567,7 +567,6 @@ class Embed(GtkClutter.Embed):
         self._overlayLayout.add(self._floatingToolbar.actor,
                                 Clutter.BinAlignment.FIXED,
                                 Clutter.BinAlignment.FIXED)
-        self.show_all()
 
         # also pack a white background to use for spotlights
         # between window modes



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