diff options
author | infirit <[email protected]> | 2014-11-26 15:30:15 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-26 18:13:43 +0100 |
commit | 7e99a3f82abb6560cec5591a2c1734e50331d0cb (patch) | |
tree | ce77a1194f95ae62f817be085cb45a1c055346c8 /stickynotes/stickynotes_applet_callbacks.c | |
parent | 7aebf38bbbe79c3a82fc4723f3fa4b01e230b0f1 (diff) | |
download | mate-applets-7e99a3f82abb6560cec5591a2c1734e50331d0cb.tar.bz2 mate-applets-7e99a3f82abb6560cec5591a2c1734e50331d0cb.tar.xz |
GDK_KEY_* is also in Gtk+2
Diffstat (limited to 'stickynotes/stickynotes_applet_callbacks.c')
-rw-r--r-- | stickynotes/stickynotes_applet_callbacks.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/stickynotes/stickynotes_applet_callbacks.c b/stickynotes/stickynotes_applet_callbacks.c index 9defba8a..bb5d2448 100644 --- a/stickynotes/stickynotes_applet_callbacks.c +++ b/stickynotes/stickynotes_applet_callbacks.c @@ -22,9 +22,6 @@ #include "stickynotes_applet_callbacks.h" #include "stickynotes.h" #include <gdk/gdkkeysyms.h> -#if GTK_CHECK_VERSION (3, 0, 0) -#include <gdk/gdkkeysyms-compat.h> -#endif #include <X11/Xatom.h> #include <gdk/gdkx.h> #include <libmate-desktop/mate-aboutdialog.h> @@ -114,10 +111,10 @@ applet_key_cb (GtkWidget *widget, { switch (event->keyval) { - case GDK_KP_Space: - case GDK_space: - case GDK_KP_Enter: - case GDK_Return: + case GDK_KEY_KP_Space: + case GDK_KEY_space: + case GDK_KEY_KP_Enter: + case GDK_KEY_Return: stickynote_show_notes (TRUE); return TRUE; } |