[gnome-music/wip/jfelder/mpris-handle-tracklist-changes: 3/3] mpris: Rename update_songs_list to update_tracklist
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/mpris-handle-tracklist-changes: 3/3] mpris: Rename update_songs_list to update_tracklist
- Date: Sun, 3 Nov 2019 22:20:04 +0000 (UTC)
commit 8b783d3edb469177af5d5e038c434de6771ef3d3
Author: Jean Felder <jfelder src gnome org>
Date: Sat Nov 2 15:11:58 2019 +0100
mpris: Rename update_songs_list to update_tracklist
According to MPRIS terminology, a list of songs is a tracklist. So,
rename this method to reflect it.
gnomemusic/mpris.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/mpris.py b/gnomemusic/mpris.py
index 7ac4cbfe..9792e1ea 100644
--- a/gnomemusic/mpris.py
+++ b/gnomemusic/mpris.py
@@ -421,7 +421,7 @@ class MPRIS(DBusInterface):
return path
@log
- def _update_songs_list(self):
+ def _update_tracklist(self):
previous_path_list = self._path_list
self._path_list = []
self._metadata_list = []
@@ -521,7 +521,7 @@ class MPRIS(DBusInterface):
self._on_player_model_changed(None, 0, 0, 0)
def _on_player_model_changed(self, model, pos, removed, added):
- self._update_songs_list()
+ self._update_tracklist()
properties = {}
properties["Metadata"] = GLib.Variant("a{sv}", self._get_metadata())
@@ -557,7 +557,7 @@ class MPRIS(DBusInterface):
@log
def _on_repeat_mode_changed(self, player, param):
- self._update_songs_list()
+ self._update_tracklist()
properties = {}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]