summaryrefslogtreecommitdiff
path: root/capplets/keyboard/mate-keyboard-properties-xkbltadd.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-24 16:16:56 +0100
committerStefano Karapetsas <[email protected]>2014-01-24 16:16:56 +0100
commit6e619aedc2e6a105d5849519ae50e9d2b1145c88 (patch)
tree8f4643663344d7a7f5da23ce657911cd3453b7a5 /capplets/keyboard/mate-keyboard-properties-xkbltadd.c
parent356930f6f372c5d51d9b7fe61a98efc4b0b1fc08 (diff)
downloadmate-control-center-6e619aedc2e6a105d5849519ae50e9d2b1145c88.tar.bz2
mate-control-center-6e619aedc2e6a105d5849519ae50e9d2b1145c88.tar.xz
keyboard: Add GTK3 support
Diffstat (limited to 'capplets/keyboard/mate-keyboard-properties-xkbltadd.c')
-rw-r--r--capplets/keyboard/mate-keyboard-properties-xkbltadd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/capplets/keyboard/mate-keyboard-properties-xkbltadd.c b/capplets/keyboard/mate-keyboard-properties-xkbltadd.c
index 1af72bb5..3a079e83 100644
--- a/capplets/keyboard/mate-keyboard-properties-xkbltadd.c
+++ b/capplets/keyboard/mate-keyboard-properties-xkbltadd.c
@@ -545,7 +545,11 @@ xkb_layout_choose (GtkBuilder * dialog)
} else
#endif
{
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_widget_hide (CWID ("vboxPreview"));
+#else
gtk_widget_hide_all (CWID ("vboxPreview"));
+#endif
gtk_widget_hide (CWID ("btnPrint"));
}