mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
c92d5d2e66
commit
4ed41dd49f
1 changed files with 4 additions and 2 deletions
6
gps.c
6
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue