Diff of /trunk/src/area_edit.c

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

revision 275 by harbaum, Mon Aug 31 18:28:30 2009 UTC revision 277 by harbaum, Thu Sep 3 07:33:50 2009 UTC
# Line 561  static gboolean map_gps_update(gpointer Line 561  static gboolean map_gps_update(gpointer
561      context->area->appdata->settings &&      context->area->appdata->settings &&
562      context->area->appdata->settings->enable_gps;      context->area->appdata->settings->enable_gps;
563    
564      pos_t pos = { NAN, NAN };
565    gboolean gps_fix = gps_on &&    gboolean gps_fix = gps_on &&
566      gps_get_pos(context->area->appdata, NULL, NULL);      gps_get_pos(context->area->appdata, &pos, NULL);
567    
568    /* ... and enable "goto" button if it's valid */    /* ... and enable "goto" button if it's valid */
569    osm_gps_map_osd_enable_gps(OSM_GPS_MAP(context->map.widget),    osm_gps_map_osd_enable_gps(OSM_GPS_MAP(context->map.widget),
570       OSM_GPS_MAP_OSD_CALLBACK(gps_fix?cb_map_gps:NULL), context);       OSM_GPS_MAP_OSD_CALLBACK(gps_fix?cb_map_gps:NULL), context);
571    
572      if(gps_fix) {
573        g_object_set(context->map.widget, "gps-track-highlight-radius", 0, NULL);
574        osm_gps_map_draw_gps(OSM_GPS_MAP(context->map.widget),
575                             pos.lat, pos.lon, NAN);
576      } else
577        osm_gps_map_clear_gps(OSM_GPS_MAP(context->map.widget));
578    
579    return TRUE;    return TRUE;
580  }  }
581    

Legend:
Removed from v.275  
changed lines
  Added in v.277