From 4ed41dd49f535e0037905d59cb8b21401578c620 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 11 Feb 2013 19:52:44 -0800 Subject: Add instructions to GPS map window title This is not what I really wanted (which was the ability to add text to the map itself), but it should be at least somewhat better than what we have today (which is a complete lack of instructions). Signed-off-by: Dirk Hohndel --- gps.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gps.c b/gps.c index f9c04b9dd..ec427fdd5 100644 --- a/gps.c +++ b/gps.c @@ -211,10 +211,12 @@ void show_map(OsmGpsMap *map, GtkWidget **window, struct dive *dive, void (*call gtk_window_set_modal(GTK_WINDOW(*window), TRUE); g_signal_connect(*window, "destroy", G_CALLBACK(on_close), (gpointer)window); g_signal_connect(G_OBJECT(map), "scroll-event", G_CALLBACK(scroll_cb), NULL); - g_signal_connect(*window, "key_press_event", G_CALLBACK (key_press_event), NULL); + g_signal_connect(*window, "key_press_event", G_CALLBACK (key_press_event), NULL); } - if (callback) + if (callback) { g_signal_connect(G_OBJECT(map), "button-press-event", G_CALLBACK(button_cb), callback); + gtk_window_set_title(GTK_WINDOW(*window), _("Use right click to mark dive location at cursor")); + } gtk_widget_show_all(*window); if (callback) gtk_grab_add(*window); -- cgit v1.2.3-70-g09d2