1797 |
#ifdef ENABLE_OSD |
#ifdef ENABLE_OSD |
1798 |
/* pressed inside OSD control? */ |
/* pressed inside OSD control? */ |
1799 |
if(priv->osd) { |
if(priv->osd) { |
1800 |
osd_button_t but = priv->osd->check(priv->osd, event->x, event->y); |
osd_button_t but = |
1801 |
|
priv->osd->check(priv->osd, TRUE, event->x, event->y); |
1802 |
|
|
1803 |
if(but != OSD_NONE) |
if(but != OSD_NONE) |
1804 |
{ |
{ |
1805 |
int step = GTK_WIDGET(widget)->allocation.width/OSM_GPS_MAP_SCROLL_STEP; |
int step = |
1806 |
|
GTK_WIDGET(widget)->allocation.width/OSM_GPS_MAP_SCROLL_STEP; |
1807 |
priv->drag_counter = -1; |
priv->drag_counter = -1; |
1808 |
|
|
1809 |
switch(but) { |
switch(but) { |
1883 |
|
|
1884 |
osm_gps_map_map_redraw_idle(OSM_GPS_MAP(widget)); |
osm_gps_map_map_redraw_idle(OSM_GPS_MAP(widget)); |
1885 |
} |
} |
1886 |
|
#ifdef ENABLE_OSD |
1887 |
|
/* pressed inside OSD control? */ |
1888 |
|
else if(priv->osd) |
1889 |
|
priv->osd->check(priv->osd, FALSE, event->x, event->y); |
1890 |
|
#endif |
1891 |
|
|
1892 |
|
|
1893 |
#ifdef DRAG_DEBUG |
#ifdef DRAG_DEBUG |
1894 |
printf("dragging done\n"); |
printf("dragging done\n"); |