From 0c3ebeb3d25fcb1d67d8316cd62acd887c2a7e25 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Fri, 6 May 2016 20:09:33 +0200 Subject: add style class appearance-window --- capplets/appearance/appearance-main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/capplets/appearance/appearance-main.c b/capplets/appearance/appearance-main.c index 4b2aae4d..91040e62 100644 --- a/capplets/appearance/appearance-main.c +++ b/capplets/appearance/appearance-main.c @@ -147,6 +147,9 @@ main (int argc, char **argv) { AppearanceData *data; GtkWidget *w; +#if GTK_CHECK_VERSION(3, 0, 0) + GtkStyleContext *context; +#endif gchar *install_filename = NULL; gchar *start_page = NULL; @@ -199,6 +202,10 @@ main (int argc, char **argv) /* prepare the main window */ w = appearance_capplet_get_widget (data, "appearance_window"); +#if GTK_CHECK_VERSION(3, 0, 0) + context = gtk_widget_get_style_context (GTK_WIDGET (w)); + gtk_style_context_add_class (context, "appearance-window"); +#endif capplet_set_icon (w, "preferences-desktop-theme"); gtk_widget_show_all (w); -- cgit v1.2.1