[gnome-music/wip/jfelder/searchview-selection-fixes: 3/5] searchview: Fix selection of an album by clicking on its cover




commit fd50c1e2f9f6ddc15870f44caac3b9b30606d151
Author: Jean Felder <jfelder src gnome org>
Date:   Fri Aug 21 16:46:38 2020 +0200

    searchview: Fix selection of an album by clicking on its cover
    
    Before the introduction of rubberband selection in AlbumsView (commit
    9d0445640494031f43648868318b4f593cfc2194), the album selection logic
    was handled by the AlbumCover class. It now needs to be handled by
    SearchView.
    
    Related: #407

 gnomemusic/views/searchview.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gnomemusic/views/searchview.py b/gnomemusic/views/searchview.py
index 25b3ef0b..3c5cc122 100644
--- a/gnomemusic/views/searchview.py
+++ b/gnomemusic/views/searchview.py
@@ -332,6 +332,7 @@ class SearchView(Gtk.Stack):
     def _on_album_activated(self, widget, child, user_data=None):
         corealbum = child.props.corealbum
         if self.props.selection_mode:
+            corealbum.props.selected = not corealbum.props.selected
             return
 
         # Update and display the album widget if not in selection mode


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