[gnome-music/wip/jfelder/mpris-playlists-cleanup: 1/6] mpris: Distinguish mpris playlists from user playlists
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/mpris-playlists-cleanup: 1/6] mpris: Distinguish mpris playlists from user playlists
- Date: Wed, 29 May 2019 16:41:56 +0000 (UTC)
commit dde8893496f118ad100a3944daef2a1023f0c44e
Author: Jean Felder <jfelder src gnome org>
Date: Mon Mar 18 15:44:18 2019 +0100
mpris: Distinguish mpris playlists from user playlists
Rename _get_playlists method to _query_playlists to avoid the confusion
between the playlists created by the user and the functions associated
with the MPRIS Playlists interface.
gnomemusic/mpris.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/mpris.py b/gnomemusic/mpris.py
index 51e0c17f..23047a5b 100644
--- a/gnomemusic/mpris.py
+++ b/gnomemusic/mpris.py
@@ -395,7 +395,7 @@ class MediaPlayer2Service(Server):
return None
@log
- def _get_playlists(self, callback):
+ def _query_playlists(self, callback):
playlists = []
def populate_callback(source, param, item, remaining=0, data=None):
@@ -499,7 +499,7 @@ class MediaPlayer2Service(Server):
@log
def _reload_playlists(self):
- def get_playlists_callback(playlists):
+ def query_playlists_callback(playlists):
self.playlists = playlists
self.PropertiesChanged(MediaPlayer2Service.MEDIA_PLAYER2_PLAYLISTS_IFACE,
{
@@ -507,7 +507,7 @@ class MediaPlayer2Service(Server):
},
[])
- self._get_playlists(get_playlists_callback)
+ self._query_playlists(query_playlists_callback)
@log
def _on_playlists_count_changed(self, playlists, item):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]