summaryrefslogtreecommitdiffstats
path: root/gps.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-01-14 17:25:19 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-14 20:17:20 -0800
commit2330f9b379befe4847d77bfd031c273f8883e441 (patch)
tree467280f6f0af882e9322d858e20c05992509e1f8 /gps.c
parent90d3c5614a9c952a50e582e2dff6e21419c64729 (diff)
downloadsubsurface-2330f9b379befe4847d77bfd031c273f8883e441.tar.gz
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 <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gps.c')
-rw-r--r--gps.c10
1 files changed, 5 insertions, 5 deletions
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);