[gnome-music/wip/jfelder/playlistview-random-song: 6/7] playlistview: Simplify row-activated signal emissions
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/playlistview-random-song: 6/7] playlistview: Simplify row-activated signal emissions
- Date: Wed, 24 Apr 2019 21:18:11 +0000 (UTC)
commit 43f3cfde41642f9dfec37656d0835db54cc94103
Author: Jean Felder <jfelder src gnome org>
Date: Thu Apr 18 17:12:15 2019 +0200
playlistview: Simplify row-activated signal emissions
The column parameter is not used. So, it can be None.
gnomemusic/views/playlistview.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/views/playlistview.py b/gnomemusic/views/playlistview.py
index 6c2661be..5793184a 100644
--- a/gnomemusic/views/playlistview.py
+++ b/gnomemusic/views/playlistview.py
@@ -438,8 +438,7 @@ class PlaylistView(BaseView):
def _play_song(self, menuitem, data=None):
model, _iter = self._view.get_selection().get_selected()
path = model.get_path(_iter)
- cols = self._view.get_columns()
- self._view.emit('row-activated', path, cols[0])
+ self._view.emit('row-activated', path, None)
@log
def _add_song_to_playlist(self, menuitem, data=None):
@@ -598,8 +597,7 @@ class PlaylistView(BaseView):
@log
def _on_play_activate(self, menuitem, data=None):
- cols = self._view.get_columns()
- self._view.emit('row-activated', None, cols[0])
+ self._view.emit('row-activated', None, None)
@log
def _current_playlist_is_protected(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]