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



commit c6b604e8db3cff85bb10bbaafdea7fefc837d28c
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..de89fa6f 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::notification", 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]