[gnome-music/wip/jfelder/player-remove-prev-next-invalidated: 7/7] player: Remove prev-next-invalidated signal



commit 1249269bf54a59dfefe6740fe21b409f59e5f56b
Author: Jean Felder <jfelder src gnome org>
Date:   Wed Apr 24 00:37:26 2019 +0200

    player: Remove prev-next-invalidated signal
    
    With the previous changes to PlayerToolbar and MPRIS, all the previous
    use cases of "prev-next-invalidated" signal are now either covered by
    "playlist-changed" or the repeat-mode changes.

 gnomemusic/player.py | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 61f03f76..dcf42621 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -530,7 +530,6 @@ class Player(GObject.GObject):
     __gsignals__ = {
         'clock-tick': (GObject.SignalFlags.RUN_FIRST, None, (int,)),
         'playlist-changed': (GObject.SignalFlags.RUN_FIRST, None, ()),
-        'prev-next-invalidated': (GObject.SignalFlags.RUN_FIRST, None, ()),
         'seek-finished': (GObject.SignalFlags.RUN_FIRST, None, (float,)),
         'song-changed': (GObject.SignalFlags.RUN_FIRST, None, (int,)),
         'song-validated': (GObject.SignalFlags.RUN_FIRST, None, (int, int)),
@@ -734,7 +733,6 @@ class Player(GObject.GObject):
                 self.stop()
         self._playlist.remove_song(song_index)
         self.emit('playlist-changed')
-        self.emit('prev-next-invalidated')
 
     @log
     def add_song(self, song, song_index):
@@ -744,7 +742,6 @@ class Player(GObject.GObject):
         """
         self._playlist.add_song(song, song_index)
         self.emit('playlist-changed')
-        self.emit('prev-next-invalidated')
 
     @log
     def _on_song_validated(self, playlist, index, status):


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