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 |
|
|
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; |
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) { |
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) |