From 6e619aedc2e6a105d5849519ae50e9d2b1145c88 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Fri, 24 Jan 2014 16:16:56 +0100 Subject: keyboard: Add GTK3 support --- capplets/keyboard/mate-keyboard-properties-xkbltadd.c | 4 ++++ capplets/keyboard/mate-keyboard-properties-xkbmc.c | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'capplets/keyboard') 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")); } diff --git a/capplets/keyboard/mate-keyboard-properties-xkbmc.c b/capplets/keyboard/mate-keyboard-properties-xkbmc.c index 20cd63be..1be85b36 100644 --- a/capplets/keyboard/mate-keyboard-properties-xkbmc.c +++ b/capplets/keyboard/mate-keyboard-properties-xkbmc.c @@ -29,6 +29,11 @@ #include #include +#include +#if GTK_CHECK_VERSION (3, 0, 0) +#define gtk_widget_hide_all gtk_widget_hide +#endif + #include "capplet-util.h" #include "mate-keyboard-properties-xkb.h" -- cgit v1.2.1