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 = |