diff options
Diffstat (limited to 'capplets/appearance')
-rw-r--r-- | capplets/appearance/appearance-main.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); |