[PATCH] Use the legacy GDK keyboard definitions in gps.c

Lubomir I. Ivanov neolit123 at gmail.com
Mon Jan 14 07:25:19 PST 2013


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

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 at gmail.com>
---
 gps.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gps.c b/gps.c
index 86eb606..e0771ae 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);
 
-- 
1.7.11.msysgit.0



More information about the subsurface mailing list