diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-02-11 19:52:44 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-11 19:52:44 -0800 |
commit | 4ed41dd49f535e0037905d59cb8b21401578c620 (patch) | |
tree | 6f332c862ee27e62902d331ee742a150b14e9c35 /gps.c | |
parent | c92d5d2e668f2467139bc061a15def40a0cd52ea (diff) | |
download | subsurface-4ed41dd49f535e0037905d59cb8b21401578c620.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'gps.c')
-rw-r--r-- | gps.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |