Diff of /trunk/src/misc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 212 by harbaum, Wed Nov 25 13:52:17 2009 UTC revision 213 by harbaum, Wed Nov 25 20:19:32 2009 UTC
# Line 628  static GtkWidget *popup_menu_create(appd Line 628  static GtkWidget *popup_menu_create(appd
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
# Line 650  static GtkWidget *popup_menu_create(appd Line 650  static GtkWidget *popup_menu_create(appd
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);
# Line 692  GtkWidget *coo_popup(appdata_t *appdata, Line 692  GtkWidget *coo_popup(appdata_t *appdata,
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    

Legend:
Removed from v.212  
changed lines
  Added in v.213