mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Hack Makefile, gtk-gui.c and divelist.c to allow building w/o osm-gps-map
While we are waiting for an autotools generated Makefile, this should allow people to build that don't have osm-gps-map. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
91d6d12416
commit
d0d4bbece7
3 changed files with 18 additions and 7 deletions
|
|
@ -1659,10 +1659,12 @@ void edit_dive_when_cb(GtkWidget *menuitem, struct dive *dive)
|
|||
}
|
||||
}
|
||||
|
||||
#if HAVE_OSM_GPS_MAP
|
||||
static void show_gps_location_cb(GtkWidget *menuitem, struct dive *dive)
|
||||
{
|
||||
show_gps_location(dive);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void expand_all_cb(GtkWidget *menuitem, GtkTreeView *tree_view)
|
||||
{
|
||||
|
|
@ -2475,14 +2477,14 @@ static void popup_divelist_menu(GtkTreeView *tree_view, GtkTreeModel *model, int
|
|||
g_signal_connect(menuitem, "activate", G_CALLBACK(edit_dive_from_path_cb), path);
|
||||
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
|
||||
}
|
||||
|
||||
#if HAVE_OSM_GPS_MAP
|
||||
/* Only offer to show on map if it has a location. */
|
||||
if (dive_has_location(dive)) {
|
||||
menuitem = gtk_menu_item_new_with_label(_("Show in map"));
|
||||
g_signal_connect(menuitem, "activate", G_CALLBACK(show_gps_location_cb), dive);
|
||||
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
|
||||
}
|
||||
|
||||
#endif
|
||||
/* only offer trip editing options when we are displaying the tree model */
|
||||
if (dive_list.model == dive_list.treemodel) {
|
||||
int depth = gtk_tree_path_get_depth(path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue