[gnome-music/wip/mschraal/view-styling-fixes: 18/20] songsview: Drop default style class




commit 82944c4caa35e93d040e1366cc17f87952318e65
Author: Marinus Schraal <mschraal gnome org>
Date:   Thu Aug 12 00:43:02 2021 +0200

    songsview: Drop default style class
    
    The default .view style class makes SongsView differ from the other
    views, drop it.

 gnomemusic/views/songsview.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gnomemusic/views/songsview.py b/gnomemusic/views/songsview.py
index ee7752ee4..5527a8e29 100644
--- a/gnomemusic/views/songsview.py
+++ b/gnomemusic/views/songsview.py
@@ -65,6 +65,9 @@ class SongsView(Gtk.ScrolledWindow):
         self._window = application.props.window
         self._coremodel = application.props.coremodel
 
+        ctx = self._songs_view.get_style_context()
+        ctx.remove_class("view")
+
         self._iter_to_clean = None
         self._set_list_renderers()
 


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