[gnome-music] notification: align by center, add proper margins



commit a7e90cafaaf6e048a1d83a55cd2c8897bdb0e296
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Tue Feb 17 13:50:30 2015 +0100

    notification: align by center, add proper margins
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744655

 gnomemusic/window.py |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 712ab6f..6330f99 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -309,7 +309,7 @@ class Window(Gtk.ApplicationWindow):
         self.notification = Gd.Notification()
         self.notification.set_timeout(20)
 
-        grid = Gtk.Grid()
+        grid = Gtk.Grid(valign=Gtk.Align.CENTER, margin_right=8)
         grid.set_column_spacing(8)
         self.notification.add(grid)
 
@@ -333,13 +333,14 @@ class Window(Gtk.ApplicationWindow):
     @log
     def _init_loading_notification(self):
         self.notification = Gd.Notification()
-        grid = Gtk.Grid()
+        grid = Gtk.Grid(valign=Gtk.Align.CENTER, margin_right=8)
         grid.set_column_spacing(8)
-        self.notification.add(grid)
         spinner = Gtk.Spinner()
-        grid.add(spinner)
-        grid.add(Gtk.Label.new(_("Loading")))
         spinner.start()
+        grid.add(spinner)
+        label = Gtk.Label.new(_("Loading"))
+        grid.add(label)
+        self.notification.add(grid)
         self.notification.show_all()
         GLib.timeout_add(1000, self._overlay.add_overlay, self.notification)
 


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