[gnome-music/wip/jfelder/mpris-cleanup: 55/67] mpris: Remove unused signals from the TrackList interface
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/mpris-cleanup: 55/67] mpris: Remove unused signals from the TrackList interface
- Date: Fri, 5 Apr 2019 20:10:34 +0000 (UTC)
commit b8a41c9b6106b10f78cbb1419233b4a26a28e17a
Author: Jean Felder <jfelder src gnome org>
Date: Thu Apr 4 15:30:02 2019 +0200
mpris: Remove unused signals from the TrackList interface
TrackAdded, TrackRemoved and TrackMetadataChanged signal are unused by
GNOME Music. Only the TrackListRepaced signal is used.
gnomemusic/mpris.py | 22 ----------------------
1 file changed, 22 deletions(-)
---
diff --git a/gnomemusic/mpris.py b/gnomemusic/mpris.py
index c2f86001..23392acc 100644
--- a/gnomemusic/mpris.py
+++ b/gnomemusic/mpris.py
@@ -692,28 +692,6 @@ class MPRIS(DBusInterface):
GLib.Variant.new_tuple(GLib.Variant('ao', tracks),
GLib.Variant('o', current_song)))
- def TrackAdded(self, metadata, after_track):
- self.con.emit_signal(None,
- '/org/mpris/MediaPlayer2',
- MPRIS.MEDIA_PLAYER2_TRACKLIST_IFACE,
- 'TrackAdded',
- GLib.Variant.new_tuple(GLib.Variant('a{sv}', metadata),
- GLib.Variant('o', after_track)))
-
- def TrackRemoved(self, path):
- self.con.emit_signal(
- None, '/org/mpris/MediaPlayer2',
- MPRIS.MEDIA_PLAYER2_TRACKLIST_IFACE, 'TrackRemoved',
- GLib.Variant.new_tuple(GLib.Variant('o', path)))
-
- def TrackMetadataChanged(self, path, metadata):
- self.con.emit_signal(
- None, '/org/mpris/MediaPlayer2',
- MPRIS.MEDIA_PLAYER2_TRACKLIST_IFACE,
- 'TrackMetadataChanged',
- GLib.Variant.new_tuple(
- GLib.Variant('o', path), GLib.Variant('a{sv}', metadata)))
-
def ActivatePlaylist(self, playlist_path):
playlist_id = self._get_playlist_from_dbus_path(playlist_path).get_id()
self.app._window.views[View.PLAYLIST].activate_playlist(playlist_id)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]