[gnome-music/wip/jfelder/remove-emit-activate: 1/2] artistsview: Do not manually emit the row-activated signal



commit 63674e31f91fea6a4a5bea5fb0317da6953ca104
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Jan 9 18:50:31 2020 +0100

    artistsview: Do not manually emit the row-activated signal
    
    The `activate` signal is really only meant for user activation.

 gnomemusic/views/artistsview.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/views/artistsview.py b/gnomemusic/views/artistsview.py
index 2d05bda0..af4348fb 100644
--- a/gnomemusic/views/artistsview.py
+++ b/gnomemusic/views/artistsview.py
@@ -114,7 +114,7 @@ class ArtistsView(BaseView):
                         or self._sidebar.get_row_at_index(position - 1))
             if row_next:
                 self._sidebar.select_row(row_next)
-                row_next.emit("activate")
+                self._on_artist_activated(self._sidebar, row_next)
 
         removed_frame = self._view.get_child_by_name(removed_artist)
         self._view.remove(removed_frame)


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