diff options
author | infirit <[email protected]> | 2014-11-23 13:38:21 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-23 13:38:21 +0100 |
commit | 1acfcdf8da5da1d96ba7f9332f5c857c5b9d42fc (patch) | |
tree | fcf349713a0296ae23e02e936ee9e37a80b9ce12 /applets/fish | |
parent | bf4500d99c6ab596bc673afee964762f9dc44230 (diff) | |
download | mate-panel-1acfcdf8da5da1d96ba7f9332f5c857c5b9d42fc.tar.bz2 mate-panel-1acfcdf8da5da1d96ba7f9332f5c857c5b9d42fc.tar.xz |
GDK_KEY_* is also in Gtk+2.24
Diffstat (limited to 'applets/fish')
-rw-r--r-- | applets/fish/fish.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/applets/fish/fish.c b/applets/fish/fish.c index f9a69435..5ab04e09 100644 --- a/applets/fish/fish.c +++ b/applets/fish/fish.c @@ -38,9 +38,6 @@ #include <glib-object.h> #include <gtk/gtk.h> #include <gdk/gdkkeysyms.h> -#if GTK_CHECK_VERSION (3, 0, 0) -#include <gdk/gdkkeysyms-compat.h> -#endif #include <gio/gio.h> #include <libmate-desktop/mate-aboutdialog.h> @@ -1619,12 +1616,12 @@ static void change_water(FishApplet* fish) static gboolean handle_keypress(GtkWidget* widget, GdkEventKey* event, FishApplet* fish) { switch (event->keyval) { - case GDK_space: - case GDK_KP_Space: - case GDK_Return: - case GDK_KP_Enter: - case GDK_ISO_Enter: - case GDK_3270_Enter: + case GDK_KEY_space: + case GDK_KEY_KP_Space: + case GDK_KEY_Return: + case GDK_KEY_KP_Enter: + case GDK_KEY_ISO_Enter: + case GDK_KEY_3270_Enter: if (fish->april_fools) { change_water (fish); return TRUE; |