From 7e99a3f82abb6560cec5591a2c1734e50331d0cb Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 26 Nov 2014 15:30:15 +0100 Subject: GDK_KEY_* is also in Gtk+2 --- trashapplet/src/trashapplet.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'trashapplet') diff --git a/trashapplet/src/trashapplet.c b/trashapplet/src/trashapplet.c index f3372b17..c159a93f 100644 --- a/trashapplet/src/trashapplet.c +++ b/trashapplet/src/trashapplet.c @@ -30,9 +30,6 @@ #include #include #include -#if GTK_CHECK_VERSION (3, 0, 0) -#include -#endif #include #include #include @@ -287,12 +284,12 @@ trash_applet_key_press (GtkWidget *widget, 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: trash_applet_open_folder (NULL, applet); return TRUE; -- cgit v1.2.1