[gnome-music/wip/jfelder/new-artist-design] artistalbumswidget: Ensure that album rows cannot get focus



commit d316d00060575e905edadf132e047cdd2e07a03c
Author: Jean Felder <jfelder src gnome org>
Date:   Fri Aug 6 21:12:21 2021 +0200

    artistalbumswidget: Ensure that album rows cannot get focus
    
    This prevents the rows from being selectable.

 gnomemusic/widgets/artistalbumswidget.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gnomemusic/widgets/artistalbumswidget.py b/gnomemusic/widgets/artistalbumswidget.py
index 7a5762582..c65dafa9e 100644
--- a/gnomemusic/widgets/artistalbumswidget.py
+++ b/gnomemusic/widgets/artistalbumswidget.py
@@ -61,6 +61,7 @@ class ArtistAlbumsWidget(Gtk.ListBox):
         row = Gtk.ListBoxRow()
         row.props.selectable = False
         row.props.activatable = False
+        row.props.can_focus = False
 
         widget = AlbumWidget(self._application)
         widget.props.corealbum = corealbum


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