summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-01-10 16:17:29 -0500
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2015-01-07 13:56:44 +0200
commitb0a9913fc506ebc7b2981c209526028f9c78d7ba (patch)
tree2fa8d1ef163588579bc59490e83965cf02d6bec5
parent6eef11c6b9a2684e3e4663f5804dd1f67c896003 (diff)
downloadmetacity-b0a9913fc506ebc7b2981c209526028f9c78d7ba.tar.gz
theme: Add the .background style class back to frames
GtkWindow added the BACKGROUND style class to all windows, which the CSS file selects on to set a background color for all windows. Without this, the background color becomes undefined, and thus window frames look like they have "glitchy" graphics. https://bugzilla.gnome.org/show_bug.cgi?id=690317
-rw-r--r--src/ui/theme.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 48dff5b4..c61ffbeb 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -5390,6 +5390,7 @@ meta_theme_create_style_context (GdkScreen *screen,
style = gtk_style_context_new ();
path = gtk_widget_path_new ();
gtk_widget_path_append_type (path, META_TYPE_FRAMES);
+ gtk_widget_path_iter_add_class (path, -1, GTK_STYLE_CLASS_BACKGROUND);
gtk_style_context_set_path (style, path);
gtk_widget_path_unref (path);