Diff of /trunk/src/map-tool.c

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

revision 85 by harbaum, Fri Aug 28 12:07:16 2009 UTC revision 86 by harbaum, Sun Aug 30 19:05:44 2009 UTC
# Line 236  on_map_button_press_event(GtkWidget *wid Line 236  on_map_button_press_event(GtkWidget *wid
236                              GdkEventButton *event, map_context_t *context) {                              GdkEventButton *event, map_context_t *context) {
237    OsmGpsMap *map = OSM_GPS_MAP(context->widget);    OsmGpsMap *map = OSM_GPS_MAP(context->widget);
238    
239      /* check if we actually clicked parts of the OSD */
240      if(osm_gps_map_osd_check(map, event->x, event->y) != OSD_NONE)
241        return FALSE;
242    
243    /* got a press event without release event? eat it! */    /* got a press event without release event? eat it! */
244    if(context->press_on != NULL) {    if(context->press_on != NULL) {
245      printf("PRESS: already\n");      printf("PRESS: already\n");
246      return TRUE;      return FALSE;
247    }    }
248    
249    pos_t pos =    pos_t pos =

Legend:
Removed from v.85  
changed lines
  Added in v.86