[gnome-music/wip/jfelder/mpris-cleanup: 15/25] 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: 15/25] mpris: Remove unused signals from the TrackList interface
- Date: Sat, 15 Jun 2019 14:49:22 +0000 (UTC)
commit 4b2b7865c03b03f5d3259112bc97024f48456ae7
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 | 35 -----------------------------------
1 file changed, 35 deletions(-)
---
diff --git a/gnomemusic/mpris.py b/gnomemusic/mpris.py
index 55be676e..fe427817 100644
--- a/gnomemusic/mpris.py
+++ b/gnomemusic/mpris.py
@@ -197,19 +197,6 @@ class MPRIS(DBusInterface):
<arg name='Tracks' type='ao'/>
<arg name='CurrentTrack' type='o'/>
</signal>
- <signal name='TrackAdded'>
- <arg name='Metadata' type='a{sv}'>
- </arg>
- <arg name='AfterTrack' type='o'/>
- </signal>
- <signal name='TrackRemoved'>
- <arg name='TrackId' type='o'/>
- </signal>
- <signal name='TrackMetadataChanged'>
- <arg name='TrackId' type='o'/>
- <arg name='Metadata' type='a{sv}'>
- </arg>
- </signal>
<property name='Tracks' type='ao' access='read'/>
<property name='CanEditTracks' type='b' access='read'/>
</interface>
@@ -670,28 +657,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._playlists.activate_playlist(playlist_id)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]