Diff of /trunk/src/misc.c

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

revision 249 by harbaum, Thu Jan 21 21:18:33 2010 UTC revision 250 by harbaum, Sat Jan 23 20:12:41 2010 UTC
# Line 1635  GtkWidget *preset_coordinate_picker(appd Line 1635  GtkWidget *preset_coordinate_picker(appd
1635    return button;    return button;
1636  }  }
1637    
 #if defined(ENABLE_MAEMO_MAPPER) || defined(ENABLE_OSM_GPS_MAP)  
1638  static pos_t goto_pos_get(GtkWidget *item) {  static pos_t goto_pos_get(GtkWidget *item) {
1639    pos_t pos;    pos_t pos;
1640    
# Line 1648  static pos_t goto_pos_get(GtkWidget *ite Line 1647  static pos_t goto_pos_get(GtkWidget *ite
1647    return  pos;    return  pos;
1648  }  }
1649    
 #if defined(ENABLE_MAEMO_MAPPER) && defined(ENABLE_OSM_GPS_MAP)  
1650  #ifdef ENABLE_MAEMO_MAPPER  #ifdef ENABLE_MAEMO_MAPPER
1651  static void cb_mm_set(GtkWidget *item, gpointer data) {  static void cb_mm_set(GtkWidget *item, gpointer data) {
1652    appdata_t *appdata = (appdata_t*)data;    appdata_t *appdata = (appdata_t*)data;
# Line 1773  static GtkWidget *goto_picker_create(app Line 1771  static GtkWidget *goto_picker_create(app
1771  #endif  #endif
1772  }  }
1773  #endif  #endif
 #endif  
1774    
1775  static gint on_goto_button_press(GtkWidget *button,  static gint on_goto_button_press(GtkWidget *button,
1776                                   GdkEventButton *event, gpointer data) {                                   GdkEventButton *event, gpointer data) {
# Line 1850  GtkWidget *goto_coordinate(appdata_t *ap Line 1847  GtkWidget *goto_coordinate(appdata_t *ap
1847    
1848    return button;    return button;
1849  }  }
 #else  
 /* no map installed */  
 GtkWidget *goto_coordinate(appdata_t *appdata,  
                      GtkWidget *lat_entry, GtkWidget *lon_entry) {  
   return gtk_label_new("");  
 }  
 #endif  
1850    
1851  GtkWidget *entry_new(void) {  GtkWidget *entry_new(void) {
1852  #if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5)  #if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5)

Legend:
Removed from v.249  
changed lines
  Added in v.250