[gnome-music] Replace deprecated GObject signal flags



commit 81ed58b55b761d45acc504fd532d89e523adc2d6
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Wed Jul 15 10:14:25 2015 +0200

    Replace deprecated GObject signal flags

 gnomemusic/grilo.py     |    6 +++---
 gnomemusic/player.py    |   20 ++++++++++----------
 gnomemusic/playlists.py |   10 +++++-----
 gnomemusic/toolbar.py   |    4 ++--
 gnomemusic/view.py      |    6 +++---
 gnomemusic/widgets.py   |    4 ++--
 6 files changed, 25 insertions(+), 25 deletions(-)
---
diff --git a/gnomemusic/grilo.py b/gnomemusic/grilo.py
index bcdce3c..54e6482 100644
--- a/gnomemusic/grilo.py
+++ b/gnomemusic/grilo.py
@@ -40,9 +40,9 @@ logger = logging.getLogger(__name__)
 class Grilo(GObject.GObject):
 
     __gsignals__ = {
-        'ready': (GObject.SIGNAL_RUN_FIRST, None, ()),
-        'changes-pending': (GObject.SIGNAL_RUN_FIRST, None, ()),
-        'new-source-added': (GObject.SIGNAL_RUN_FIRST, None, (Grl.Source, ))
+        'ready': (GObject.SignalFlags.RUN_FIRST, None, ()),
+        'changes-pending': (GObject.SignalFlags.RUN_FIRST, None, ()),
+        'new-source-added': (GObject.SignalFlags.RUN_FIRST, None, (Grl.Source, ))
     }
 
     METADATA_KEYS = [
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 23b35bb..a6a6fd8 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -82,16 +82,16 @@ class Player(GObject.GObject):
     shuffleHistory = deque(maxlen=10)
 
     __gsignals__ = {
-        'playing-changed': (GObject.SIGNAL_RUN_FIRST, None, ()),
-        'playlist-changed': (GObject.SIGNAL_RUN_FIRST, None, ()),
-        'playlist-item-changed': (GObject.SIGNAL_RUN_FIRST, None, (Gtk.TreeModel, Gtk.TreeIter)),
-        'current-changed': (GObject.SIGNAL_RUN_FIRST, None, ()),
-        'playback-status-changed': (GObject.SIGNAL_RUN_FIRST, None, ()),
-        'repeat-mode-changed': (GObject.SIGNAL_RUN_FIRST, None, ()),
-        'volume-changed': (GObject.SIGNAL_RUN_FIRST, None, ()),
-        'prev-next-invalidated': (GObject.SIGNAL_RUN_FIRST, None, ()),
-        'seeked': (GObject.SIGNAL_RUN_FIRST, None, (int,)),
-        'thumbnail-updated': (GObject.SIGNAL_RUN_FIRST, None, (str,)),
+        'playing-changed': (GObject.SignalFlags.RUN_FIRST, None, ()),
+        'playlist-changed': (GObject.SignalFlags.RUN_FIRST, None, ()),
+        'playlist-item-changed': (GObject.SignalFlags.RUN_FIRST, None, (Gtk.TreeModel, Gtk.TreeIter)),
+        'current-changed': (GObject.SignalFlags.RUN_FIRST, None, ()),
+        'playback-status-changed': (GObject.SignalFlags.RUN_FIRST, None, ()),
+        'repeat-mode-changed': (GObject.SignalFlags.RUN_FIRST, None, ()),
+        'volume-changed': (GObject.SignalFlags.RUN_FIRST, None, ()),
+        'prev-next-invalidated': (GObject.SignalFlags.RUN_FIRST, None, ()),
+        'seeked': (GObject.SignalFlags.RUN_FIRST, None, (int,)),
+        'thumbnail-updated': (GObject.SignalFlags.RUN_FIRST, None, (str,)),
     }
 
     @log
diff --git a/gnomemusic/playlists.py b/gnomemusic/playlists.py
index 6522935..9249309 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -84,14 +84,14 @@ class StaticPlaylists:
 
 class Playlists(GObject.GObject):
     __gsignals__ = {
-        'playlist-created': (GObject.SIGNAL_RUN_FIRST, None, (Grl.Media,)),
-        'playlist-deleted': (GObject.SIGNAL_RUN_FIRST, None, (Grl.Media,)),
-        'playlist-updated': (GObject.SIGNAL_RUN_FIRST, None, (int,)),
+        'playlist-created': (GObject.SignalFlags.RUN_FIRST, None, (Grl.Media,)),
+        'playlist-deleted': (GObject.SignalFlags.RUN_FIRST, None, (Grl.Media,)),
+        'playlist-updated': (GObject.SignalFlags.RUN_FIRST, None, (int,)),
         'song-added-to-playlist': (
-            GObject.SIGNAL_RUN_FIRST, None, (Grl.Media, Grl.Media)
+            GObject.SignalFlags.RUN_FIRST, None, (Grl.Media, Grl.Media)
         ),
         'song-removed-from-playlist': (
-            GObject.SIGNAL_RUN_FIRST, None, (Grl.Media, Grl.Media)
+            GObject.SignalFlags.RUN_FIRST, None, (Grl.Media, Grl.Media)
         ),
     }
     instance = None
diff --git a/gnomemusic/toolbar.py b/gnomemusic/toolbar.py
index 28265aa..5ea465a 100644
--- a/gnomemusic/toolbar.py
+++ b/gnomemusic/toolbar.py
@@ -47,8 +47,8 @@ class ToolbarState:
 class Toolbar(GObject.GObject):
 
     __gsignals__ = {
-        'state-changed': (GObject.SIGNAL_RUN_FIRST, None, ()),
-        'selection-mode-changed': (GObject.SIGNAL_RUN_FIRST, None, ()),
+        'state-changed': (GObject.SignalFlags.RUN_FIRST, None, ()),
+        'selection-mode-changed': (GObject.SignalFlags.RUN_FIRST, None, ()),
     }
     _selectionMode = False
 
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 862a65e..27fc182 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -809,8 +809,8 @@ class Artists (ViewContainer):
 
 class Playlist(ViewContainer):
     __gsignals__ = {
-        'playlists-loaded': (GObject.SIGNAL_RUN_FIRST, None, ()),
-        'playlist-songs-loaded': (GObject.SIGNAL_RUN_FIRST, None, ()),
+        'playlists-loaded': (GObject.SignalFlags.RUN_FIRST, None, ()),
+        'playlist-songs-loaded': (GObject.SignalFlags.RUN_FIRST, None, ()),
     }
 
     @log
@@ -1337,7 +1337,7 @@ class EmptySearch(ViewContainer):
 
 class Search(ViewContainer):
     __gsignals__ = {
-        'no-music-found': (GObject.SIGNAL_RUN_FIRST, None, ())
+        'no-music-found': (GObject.SignalFlags.RUN_FIRST, None, ())
     }
 
     @log
diff --git a/gnomemusic/widgets.py b/gnomemusic/widgets.py
index ce3573b..22de7ae 100644
--- a/gnomemusic/widgets.py
+++ b/gnomemusic/widgets.py
@@ -545,7 +545,7 @@ class AllArtistsAlbums(ArtistAlbums):
 class ArtistAlbumWidget(Gtk.Box):
 
     __gsignals__ = {
-        'tracks-loaded': (GObject.SIGNAL_RUN_FIRST, None, ()),
+        'tracks-loaded': (GObject.SignalFlags.RUN_FIRST, None, ()),
     }
 
     loadingIcon = AlbumArtCache.get_default().get_default_icon(128, 128, True)
@@ -825,7 +825,7 @@ class PlaylistDialog():
 
 class CellRendererClickablePixbuf(Gtk.CellRendererPixbuf):
 
-    __gsignals__ = {'clicked': (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE,
+    __gsignals__ = {'clicked': (GObject.SignalFlags.RUN_LAST, GObject.TYPE_NONE,
                                 (GObject.TYPE_STRING,))}
     __gproperties__ = {
         'show_star': (GObject.TYPE_BOOLEAN, 'Show star', 'show star', False, GObject.PARAM_READWRITE)}


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