_center_mode=CENTER_MANUAL;
map_center_latlon(pos->lat, pos->lon);
map_set_autozoom(FALSE);
-map_update_location_from_center();
+g_idle_add((GSourceFunc)map_update_location_from_center, NULL);
return TRUE;
}
void map_center_unit(guint new_center_unitx, guint new_center_unity);
void map_center_latlon(gdouble lat, gdouble lon);
gboolean map_goto_position(Position *pos);
+gboolean map_update_location_from_center(void);
gboolean map_cb_configure(GtkWidget * widget, GdkEventConfigure * event);
gboolean map_cb_expose(GtkWidget * widget, GdkEventExpose * event);