1645 |
} |
} |
1646 |
|
|
1647 |
static const menu_entry_t submenu_tools_entries[] = { |
static const menu_entry_t submenu_tools_entries[] = { |
|
#ifdef ENABLE_OSM_GPS_MAP |
|
|
{ "Map", "Display an interactive world map", |
|
|
G_CALLBACK(cb_menu_map) }, |
|
|
#endif |
|
1648 |
{ "Geomath", "Geocoordinate calculation", |
{ "Geomath", "Geocoordinate calculation", |
1649 |
G_CALLBACK(cb_menu_geomath) }, |
G_CALLBACK(cb_menu_geomath) }, |
1650 |
{ "Geotext", "Text analysis", |
{ "Geotext", "Text analysis", |
1692 |
g_signal_connect_after(button, "clicked", |
g_signal_connect_after(button, "clicked", |
1693 |
G_CALLBACK(cb_menu_adddir), appdata); |
G_CALLBACK(cb_menu_adddir), appdata); |
1694 |
hildon_app_menu_append(menu, GTK_BUTTON(button)); |
hildon_app_menu_append(menu, GTK_BUTTON(button)); |
|
} |
|
1695 |
|
|
|
if(mode == MENU_GPXLIST) { |
|
1696 |
button = gtk_button_new_with_label(_("Export")); |
button = gtk_button_new_with_label(_("Export")); |
1697 |
g_signal_connect_after(button, "clicked", |
g_signal_connect_after(button, "clicked", |
1698 |
G_CALLBACK(on_export_clicked), appdata); |
G_CALLBACK(on_export_clicked), appdata); |
1709 |
G_CALLBACK(on_tools_clicked), appdata); |
G_CALLBACK(on_tools_clicked), appdata); |
1710 |
hildon_app_menu_append(menu, GTK_BUTTON(button)); |
hildon_app_menu_append(menu, GTK_BUTTON(button)); |
1711 |
|
|
1712 |
|
#ifdef ENABLE_OSM_GPS_MAP |
1713 |
|
if((mode == MENU_GPXLIST) || (mode == MENU_CACHELIST)) { |
1714 |
|
button = gtk_button_new_with_label(_("Map")); |
1715 |
|
g_signal_connect_after(button, "clicked", |
1716 |
|
G_CALLBACK(cb_menu_map), appdata); |
1717 |
|
hildon_app_menu_append(menu, GTK_BUTTON(button)); |
1718 |
|
} |
1719 |
|
#endif |
1720 |
|
|
1721 |
#ifdef HILDON_HELP |
#ifdef HILDON_HELP |
1722 |
button = gtk_button_new_with_label(_("Help")); |
button = gtk_button_new_with_label(_("Help")); |
1723 |
g_signal_connect_after(button, "clicked", |
g_signal_connect_after(button, "clicked", |