summaryrefslogtreecommitdiff
path: root/capplets/appearance/appearance-style.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-09-08 12:26:57 +0300
committermonsta <[email protected]>2016-09-08 14:24:23 +0300
commitb4ca9200009784e95a5f2b1c1fd982eb33af1094 (patch)
tree695c5f7216a4cc5405e42fd0f9eb36f27f097888 /capplets/appearance/appearance-style.c
parentb338357b233c0cc96f55072e28687fc09bd62bfc (diff)
downloadmate-control-center-b4ca9200009784e95a5f2b1c1fd982eb33af1094.tar.bz2
mate-control-center-b4ca9200009784e95a5f2b1c1fd982eb33af1094.tar.xz
GTK+3 appearance: don't show Colors tab in Customize Theme dialog
changing theme colors won't work in GTK+3
Diffstat (limited to 'capplets/appearance/appearance-style.c')
-rw-r--r--capplets/appearance/appearance-style.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/capplets/appearance/appearance-style.c b/capplets/appearance/appearance-style.c
index 51161f67..fbc090ed 100644
--- a/capplets/appearance/appearance-style.c
+++ b/capplets/appearance/appearance-style.c
@@ -1074,6 +1074,11 @@ style_init (AppearanceData *data)
icon_theme_changed (data->interface_settings, ICON_THEME_KEY, data);
cursor_theme_changed (data->mouse_settings, CURSOR_THEME_KEY, data);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ GtkNotebook *style_nb = GTK_NOTEBOOK (appearance_capplet_get_widget (data, "notebook2"));
+ gtk_notebook_remove_page (style_nb, 1);
+#endif
+
w = appearance_capplet_get_widget (data, "color_scheme_message_hbox");
gtk_widget_set_no_show_all (w, TRUE);