[gnome-music/wip/jfelder/mpris-handle-tracklist-changes: 6/6] mpris: Rename update_songs_list to update_tracklist



commit 93cd2bbf4b151584b0d754b32c55e328b57f60fa
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]