diff options
author | infirit <[email protected]> | 2015-07-14 10:09:55 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-07-14 13:07:33 +0200 |
commit | 8b65935648a94ba427e1fa457336485662cddd42 (patch) | |
tree | 34f60155df3209e6b4446f70198c9c6068ebfe8c /applets/wncklet | |
parent | 8c14769db1b13cffe7cafcdea482061bbe4d5dd4 (diff) | |
download | mate-panel-8b65935648a94ba427e1fa457336485662cddd42.tar.bz2 mate-panel-8b65935648a94ba427e1fa457336485662cddd42.tar.xz |
Drop gdkkeysyms-compat usage in Gtk+3
The new GDK_KEY_ keys are also in Gtk+2.
Diffstat (limited to 'applets/wncklet')
-rw-r--r-- | applets/wncklet/window-menu.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/applets/wncklet/window-menu.c b/applets/wncklet/window-menu.c index 7ddb2f83..d56c77fc 100644 --- a/applets/wncklet/window-menu.c +++ b/applets/wncklet/window-menu.c @@ -34,9 +34,6 @@ #include <glib/gi18n.h> #include <gdk/gdkkeysyms.h> -#if GTK_CHECK_VERSION (3, 0, 0) -#include <gdk/gdkkeysyms-compat.h> -#endif #include <libmate-desktop/mate-aboutdialog.h> @@ -246,12 +243,12 @@ static gboolean window_menu_key_press_event(GtkWidget* widget, GdkEventKey* even switch (event->keyval) { - case GDK_KP_Enter: - case GDK_ISO_Enter: - case GDK_3270_Enter: - case GDK_Return: - case GDK_space: - case GDK_KP_Space: + case GDK_KEY_KP_Enter: + case GDK_KEY_ISO_Enter: + case GDK_KEY_3270_Enter: + case GDK_KEY_Return: + case GDK_KEY_space: + case GDK_KEY_KP_Space: selector = WNCK_SELECTOR(window_menu->selector); /* * We need to call _gtk_menu_shell_activate() here as is done in |