summaryrefslogtreecommitdiff
path: root/drivemount
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-26 15:30:15 +0100
committerinfirit <[email protected]>2014-11-26 18:13:43 +0100
commit7e99a3f82abb6560cec5591a2c1734e50331d0cb (patch)
treece77a1194f95ae62f817be085cb45a1c055346c8 /drivemount
parent7aebf38bbbe79c3a82fc4723f3fa4b01e230b0f1 (diff)
downloadmate-applets-7e99a3f82abb6560cec5591a2c1734e50331d0cb.tar.bz2
mate-applets-7e99a3f82abb6560cec5591a2c1734e50331d0cb.tar.xz
GDK_KEY_* is also in Gtk+2
Diffstat (limited to 'drivemount')
-rw-r--r--drivemount/drive-button.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivemount/drive-button.c b/drivemount/drive-button.c
index 54daa608..07cafbe6 100644
--- a/drivemount/drive-button.c
+++ b/drivemount/drive-button.c
@@ -31,7 +31,6 @@
#include <gdk/gdkkeysyms.h>
#if GTK_CHECK_VERSION (3, 0, 0)
#include <gio/gdesktopappinfo.h>
-#include <gdk/gdkkeysyms-compat.h>
#endif
#include <string.h>
@@ -264,10 +263,10 @@ drive_button_key_press (GtkWidget *widget,
DriveButton *self = DRIVE_BUTTON (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:
drive_button_ensure_popup (self);
if (self->popup_menu) {
gtk_menu_popup (GTK_MENU (self->popup_menu), NULL, NULL,