[gnome-music/wip/felder/do-not-select-row] playlistswidget: Do not select the row when opening a context menu




commit 4eaa6d6f0cfa7ee5433a44365a02749ea1fe2d58
Author: Jean Felder <jfelder src gnome org>
Date:   Fri Aug 6 22:31:37 2021 +0200

    playlistswidget: Do not select the row when opening a context menu
    
    This is a leftover from the change to use SongWidgetMenu instead of
    PlaylistContextMenu to open a context menu (commit
    813f099bca7d8ddcb08b703a318c3ba852026f19).
    
    PlaylistContextMenu relied on row selection to work while
    SongWidgetMenu does not need it.

 gnomemusic/widgets/playlistswidget.py | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/gnomemusic/widgets/playlistswidget.py b/gnomemusic/widgets/playlistswidget.py
index 7e395f140..f236872dd 100644
--- a/gnomemusic/widgets/playlistswidget.py
+++ b/gnomemusic/widgets/playlistswidget.py
@@ -131,7 +131,6 @@ class PlaylistsWidget(Gtk.Box):
     @Gtk.Template.Callback()
     def _songs_list_right_click(self, gesture, n_press, x, y):
         song_widget = self._songs_list.get_row_at_y(y)
-        self._songs_list.select_row(song_widget)
 
         _, y0 = song_widget.translate_coordinates(self._songs_list, 0, 0)
         row_height = song_widget.get_allocated_height()


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