[gnome-music] albumsview: Style selectionmode checks
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] albumsview: Style selectionmode checks
- Date: Wed, 14 Feb 2018 10:38:28 +0000 (UTC)
commit cb26cf0f7a9e1a31458ee60ece07929939fe0109
Author: Jean Felder <jean felder gmail com>
Date: Mon Feb 12 08:24:41 2018 +0100
albumsview: Style selectionmode checks
GtkFlowbox contents use the selectionmode assets for styling since
Gtk 3.22.10.
data/AlbumCover.ui | 4 ----
gnomemusic/views/albumsview.py | 2 ++
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/data/AlbumCover.ui b/data/AlbumCover.ui
index 39a79d2..67d081c 100644
--- a/data/AlbumCover.ui
+++ b/data/AlbumCover.ui
@@ -33,10 +33,6 @@
<property name="halign">end</property>
<property name="valign">end</property>
<property name="draw_indicator">True</property>
- <style>
- <class name="osd"/>
- <class name="content-view"/>
- </style>
</object>
</child>
</object>
diff --git a/gnomemusic/views/albumsview.py b/gnomemusic/views/albumsview.py
index 8fef4f0..51b8e2e 100644
--- a/gnomemusic/views/albumsview.py
+++ b/gnomemusic/views/albumsview.py
@@ -75,6 +75,7 @@ class AlbumsView(BaseView):
margin=18, row_spacing=12, column_spacing=6,
min_children_per_line=1, max_children_per_line=25)
+ self._view.get_style_context().add_class('content-view')
self._view.connect('child-activated', self._on_child_activated)
scrolledwin = Gtk.ScrolledWindow()
@@ -158,6 +159,7 @@ class AlbumsView(BaseView):
'/org/gnome/Music/AlbumCover.ui')
child = Gtk.FlowBoxChild()
+ child.get_style_context().add_class('tile')
child.stack = builder.get_object('stack')
child.check = builder.get_object('check')
child.title = builder.get_object('title')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]