Diff of /trunk/src/osm-gps-map.c

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

revision 113 by harbaum, Wed Sep 16 13:45:10 2009 UTC revision 114 by harbaum, Wed Sep 16 20:04:38 2009 UTC
# Line 1797  osm_gps_map_button_press (GtkWidget *wid Line 1797  osm_gps_map_button_press (GtkWidget *wid
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) {
# Line 1880  osm_gps_map_button_release (GtkWidget *w Line 1883  osm_gps_map_button_release (GtkWidget *w
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");

Legend:
Removed from v.113  
changed lines
  Added in v.114