[gnome-music] reordered notification functions



commit fb6ea364b9ea819e6cb25fd1d2fca43461dbf77b
Author: Maia <maia mcc gmail com>
Date:   Tue Feb 17 18:02:58 2015 -0500

    reordered notification functions

 gnomemusic/window.py |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index d347758..5359695 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -305,6 +305,20 @@ class Window(Gtk.ApplicationWindow):
         self._stack.get_visible_child().queue_draw()
 
     @log
+    def _init_loading_notification(self):
+        self.notification = Gd.Notification()
+        grid = Gtk.Grid(valign=Gtk.Align.CENTER, margin_right=8)
+        grid.set_column_spacing(8)
+        spinner = Gtk.Spinner()
+        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)
+
+    @log
     def _init_playlist_removal_notification(self):
         self.notification = Gd.Notification()
         self.notification.set_timeout(20)
@@ -333,20 +347,6 @@ class Window(Gtk.ApplicationWindow):
             self.views[3].really_delete = True
 
     @log
-    def _init_loading_notification(self):
-        self.notification = Gd.Notification()
-        grid = Gtk.Grid(valign=Gtk.Align.CENTER, margin_right=8)
-        grid.set_column_spacing(8)
-        spinner = Gtk.Spinner()
-        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)
-
-    @log
     def _undo_deletion(self, widget):
         self.views[3].really_delete = False
         self.notification.dismiss()


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