[gnome-music/wip/jfelder/fix-validation-notification] songliststore: Listen to the correct signal for validation



commit f86cc808686de3c57b6c991662ef3d9f5e3023f8
Author: Jean Felder <jfelder src gnome org>
Date:   Tue Jul 16 22:51:41 2019 +0200

    songliststore: Listen to the correct signal for validation
    
    The property associated with the song validation is validation and not
    state.

 gnomemusic/songliststore.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/songliststore.py b/gnomemusic/songliststore.py
index b923943e..df3c2587 100644
--- a/gnomemusic/songliststore.py
+++ b/gnomemusic/songliststore.py
@@ -71,7 +71,7 @@ class SongListStore(Gtk.ListStore):
                 coresong.connect(
                     "notify::favorite", self._on_favorite_changed)
                 coresong.connect(
-                    "notify::state", self._on_state_changed)
+                    "notify::validation", self._on_validation_state_changed)
 
     def _on_favorite_changed(self, coresong, value):
         for row in self:
@@ -79,7 +79,7 @@ class SongListStore(Gtk.ListStore):
                 row[6] = coresong.props.favorite
                 break
 
-    def _on_state_changed(self, coresong, value):
+    def _on_validation_state_changed(self, coresong, value):
         for row in self:
             if coresong == row[7]:
                 row[8] = coresong.props.validation


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]