[gnome-music/wip/jfelder/remove-emit-activate: 2/2] playlistsview: Do not manually emit the row-activated signal
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/remove-emit-activate: 2/2] playlistsview: Do not manually emit the row-activated signal
- Date: Thu, 9 Jan 2020 18:29:03 +0000 (UTC)
commit 8881663e57addf6e8426aebd140ddbac0722cb70
Author: Jean Felder <jfelder src gnome org>
Date: Thu Jan 9 18:55:51 2020 +0100
playlistsview: Do not manually emit the row-activated signal
The `activate` signal is really only meant for user activation.
gnomemusic/views/playlistsview.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/views/playlistsview.py b/gnomemusic/views/playlistsview.py
index 85571fc6..3a272670 100644
--- a/gnomemusic/views/playlistsview.py
+++ b/gnomemusic/views/playlistsview.py
@@ -146,7 +146,7 @@ class PlaylistsView(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_playlist_activated(self._sidebar, row_next)
@log
def _on_view_right_clicked(self, gesture, n_press, x, y):
@@ -243,7 +243,7 @@ class PlaylistsView(BaseView):
return
self._sidebar.select_row(row)
- row.emit('activate')
+ self._on_playlist_activated(self._sidebar, row)
if playlist.props.model.get_n_items() > 0:
self._song_activated(None)
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]