From 14a016dd1bfa6a9402566c3eedcb95c55370fe6b Mon Sep 17 00:00:00 2001 From: coderkun Date: Sat, 16 Apr 2016 18:00:20 +0200 Subject: [PATCH] fix CSS selectors for GTK >= 3.20 (fixes #11) --- mcg/mcgGtk.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mcg/mcgGtk.py b/mcg/mcgGtk.py index de13490..94e21ba 100755 --- a/mcg/mcgGtk.py +++ b/mcg/mcgGtk.py @@ -149,16 +149,18 @@ class Window(Gtk.ApplicationWindow): self._header_bar.set_sensitive(False, False) styleProvider = Gtk.CssProvider() styleProvider.load_from_data(b""" - GtkWidget.bg-texture { + .bg-texture { box-shadow:inset 4px 4px 10px rgba(0,0,0,0.3); background-image:url('data/noise-texture.png'); } - GtkWidget.no-bg { + .no-bg { background:none; } - GtkWidget.no-border { + .no-border { border:none; } + iconview.view:selected, + iconview.view:selected:focus, GtkIconView.cell:selected, GtkIconView.cell:selected:focus { background-color:@theme_selected_bg_color;