summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-08-06 23:43:06 +0200
committerStefano Karapetsas <[email protected]>2013-08-06 23:43:06 +0200
commit777859900163aa4569d1257bc8feb5f8197e6ac7 (patch)
tree6294c30a4e5d71b8b23650007c991e8087d2ba8d
parent8418f3c034cb8998fb066271386a4e89a8c687f9 (diff)
downloadmate-panel-777859900163aa4569d1257bc8feb5f8197e6ac7.tar.bz2
mate-panel-777859900163aa4569d1257bc8feb5f8197e6ac7.tar.xz
Improve GTK3 support
-rw-r--r--mate-panel/panel.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mate-panel/panel.c b/mate-panel/panel.c
index 2b9929d3..3cea4c08 100644
--- a/mate-panel/panel.c
+++ b/mate-panel/panel.c
@@ -17,7 +17,11 @@
#include <glib/gi18n.h>
#include <gio/gio.h>
+#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
+#if GTK_CHECK_VERSION (3, 0, 0)
+#include <gdk/gdkkeysyms-compat.h>
+#endif
#include <libpanel-util/panel-glib.h>
@@ -392,7 +396,11 @@ panel_key_press_event (GtkWidget *widget,
if (GTK_IS_SOCKET (gtk_window_get_focus (GTK_WINDOW (widget))) &&
event->keyval == GDK_F10 &&
(event->state & gtk_accelerator_get_default_mod_mask ()) == GDK_CONTROL_MASK)
+#if GTK_CHECK_VERSION (3, 0, 0)
+ return gtk_bindings_activate (G_OBJECT (widget),
+#else
return gtk_bindings_activate (GTK_OBJECT (widget),
+#endif
event->keyval,
event->state);