[gnome-music/wip/jfelder/3-36-selection-fixes: 4/5] searchview: Fix selection of an album by clicking on its cover
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/3-36-selection-fixes: 4/5] searchview: Fix selection of an album by clicking on its cover
- Date: Sat, 5 Sep 2020 21:33:51 +0000 (UTC)
commit 79d3955e9543ccf034e597c4acde74c848ab56fd
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 1eb83657..81ffb432 100644
--- a/gnomemusic/views/searchview.py
+++ b/gnomemusic/views/searchview.py
@@ -334,6 +334,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]