summaryrefslogtreecommitdiff
path: root/capplets/appearance
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-05-06 20:09:33 +0200
committerraveit65 <[email protected]>2016-05-06 20:09:33 +0200
commit0c3ebeb3d25fcb1d67d8316cd62acd887c2a7e25 (patch)
tree43d71c72791726a0a5c8b238e4453f1cd10e7c88 /capplets/appearance
parentd1b6bdb975a9d65443123587c5c336b31411a722 (diff)
downloadmate-control-center-0c3ebeb3d25fcb1d67d8316cd62acd887c2a7e25.tar.bz2
mate-control-center-0c3ebeb3d25fcb1d67d8316cd62acd887c2a7e25.tar.xz
add style class appearance-window
Diffstat (limited to 'capplets/appearance')
-rw-r--r--capplets/appearance/appearance-main.c7
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);