From: Kaj-Michael Lang Date: Thu, 24 Jan 2008 16:24:15 +0000 (+0200) Subject: Callback needs gps X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8173f64b45a73cb123fae56014f58451d6413c22;p=mapper Callback needs gps --- diff --git a/src/map.c b/src/map.c index 194e5e6..32972a0 100644 --- a/src/map.c +++ b/src/map.c @@ -633,6 +633,7 @@ gtk_widget_queue_draw_area(_map_widget, gboolean map_update_location_from_gps(Gps *gps) { +g_assert(gps); map_update_location(gps->data.lat, gps->data.lon, FALSE); return FALSE; } @@ -722,7 +723,7 @@ if (_speed_on) map_speed_draw(); if (_center_mode>0) - g_idle_add_full(G_PRIORITY_HIGH_IDLE,(GSourceFunc)map_update_location_from_gps, NULL, NULL); + g_idle_add_full(G_PRIORITY_HIGH_IDLE,(GSourceFunc)map_update_location_from_gps, _gps, NULL); } /**