From 2330f9b379befe4847d77bfd031c273f8883e441 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Mon, 14 Jan 2013 17:25:19 +0200 Subject: Use the legacy GDK keyboard definitions in gps.c display-gtk.h has a check if gdkkeysyms-compat.h or gdkkeysyms.h has to be used. In gps.c, from such as "GDK_Up" has to be used, so that this file compiles on older GTK. Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- gps.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gps.c') diff --git a/gps.c b/gps.c index 86eb60672..e0771ae76 100644 --- a/gps.c +++ b/gps.c @@ -69,11 +69,11 @@ void show_gps_locations() osm_gps_map_set_center_and_zoom(map, 0, 0, 0); /* Enable keyboard navigation */ - osm_gps_map_set_keyboard_shortcut(map, OSM_GPS_MAP_KEY_FULLSCREEN, GDK_KEY_F11); - osm_gps_map_set_keyboard_shortcut(map, OSM_GPS_MAP_KEY_UP, GDK_KEY_Up); - osm_gps_map_set_keyboard_shortcut(map, OSM_GPS_MAP_KEY_DOWN, GDK_KEY_Down); - osm_gps_map_set_keyboard_shortcut(map, OSM_GPS_MAP_KEY_LEFT, GDK_KEY_Left); - osm_gps_map_set_keyboard_shortcut(map, OSM_GPS_MAP_KEY_RIGHT, GDK_KEY_Right); + osm_gps_map_set_keyboard_shortcut(map, OSM_GPS_MAP_KEY_FULLSCREEN, GDK_F11); + osm_gps_map_set_keyboard_shortcut(map, OSM_GPS_MAP_KEY_UP, GDK_Up); + osm_gps_map_set_keyboard_shortcut(map, OSM_GPS_MAP_KEY_DOWN, GDK_Down); + osm_gps_map_set_keyboard_shortcut(map, OSM_GPS_MAP_KEY_LEFT, GDK_Left); + osm_gps_map_set_keyboard_shortcut(map, OSM_GPS_MAP_KEY_RIGHT, GDK_Right); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); -- cgit v1.2.3-70-g09d2