summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-02 13:01:02 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-02 13:01:02 -0800
commita319d66c4ab3efec84700f2aa1440066b48ed20c (patch)
treea0c1ab12acd67b5578197cd9a9412f2c74984883 /gtk-gui.c
parentb900a211656bac71ef54ccec5361671e8fa5874c (diff)
downloadsubsurface-a319d66c4ab3efec84700f2aa1440066b48ed20c.tar.gz
Use old style (pre gtk-2.22) keysyms
And include the compatibility header to build on newer versions. Reported-by: Salvador Cuñat <salvador.cunat@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index a2f5e00f1..139775c08 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -5,7 +5,6 @@
*/
#include <libintl.h>
#include <glib/gi18n.h>
-#include <gdk/gdkkeysyms.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -1151,16 +1150,16 @@ static gboolean on_key_press(GtkWidget *w, GdkEventKey *event, GtkWidget *diveli
if (event->type != GDK_KEY_PRESS)
return FALSE;
switch (event->keyval) {
- case GDK_KEY_Up:
+ case GDK_Up:
select_prev_dive();
return TRUE;
- case GDK_KEY_Down:
+ case GDK_Down:
select_next_dive();
return TRUE;
- case GDK_KEY_Left:
+ case GDK_Left:
prev_dc(NULL, NULL);
return TRUE;
- case GDK_KEY_Right:
+ case GDK_Right:
next_dc(NULL, NULL);
return TRUE;
}