628 |
GtkWidget *lat_entry, GtkWidget *lon_entry) { |
GtkWidget *lat_entry, GtkWidget *lon_entry) { |
629 |
GtkWidget *menu = gtk_menu_new(); |
GtkWidget *menu = gtk_menu_new(); |
630 |
|
|
631 |
menu_add(menu, appdata, NULL, _("Current position (GPS)"), |
menu_add(menu, appdata, icon_get_widget(ICON_POS, 7), |
632 |
cb_gps, lon_entry, lat_entry); |
_("Current position (GPS)"), cb_gps, lon_entry, lat_entry); |
633 |
menu_add(menu, appdata, NULL, _("Geomath projection"), |
menu_add(menu, appdata, NULL, _("Geomath projection"), |
634 |
cb_geomath, lon_entry, lat_entry); |
cb_geomath, lon_entry, lat_entry); |
635 |
#ifdef ENABLE_OSM_GPS_MAP |
#ifdef ENABLE_OSM_GPS_MAP |
650 |
while(wpt) { |
while(wpt) { |
651 |
GtkWidget *icon = NULL; |
GtkWidget *icon = NULL; |
652 |
if(wpt->sym != WPT_SYM_UNKNOWN) |
if(wpt->sym != WPT_SYM_UNKNOWN) |
653 |
icon = icon_get_widget(ICON_WPT, wpt->sym); |
icon = icon_get_widget(ICON_POS, wpt->sym); |
654 |
|
|
655 |
menu_add(menu, appdata, icon, wpt->id, cb_cache, |
menu_add(menu, appdata, icon, wpt->id, cb_cache, |
656 |
lon_entry, lat_entry); |
lon_entry, lat_entry); |
692 |
(HILDON_SIZE_FINGER_HEIGHT | HILDON_SIZE_AUTO_WIDTH)); |
(HILDON_SIZE_FINGER_HEIGHT | HILDON_SIZE_AUTO_WIDTH)); |
693 |
#endif |
#endif |
694 |
|
|
695 |
gtk_button_set_image(GTK_BUTTON(button), |
gtk_button_set_image(GTK_BUTTON(button), icon_get_widget(ICON_POS, 6)); |
|
gtk_image_new_from_stock(GTK_STOCK_ADD, GTK_ICON_SIZE_BUTTON)); |
|
696 |
|
|
697 |
gtk_widget_set_tooltip_text(button, _("Preset coordinates")); |
gtk_widget_set_tooltip_text(button, _("Preset coordinates")); |
698 |
|
|