From a319d66c4ab3efec84700f2aa1440066b48ed20c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 2 Jan 2013 13:01:02 -0800 Subject: Use old style (pre gtk-2.22) keysyms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And include the compatibility header to build on newer versions. Reported-by: Salvador Cuñat Signed-off-by: Dirk Hohndel --- gtk-gui.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'gtk-gui.c') 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 #include -#include #include #include #include @@ -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; } -- cgit v1.2.3-70-g09d2