From 8173f64b45a73cb123fae56014f58451d6413c22 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 24 Jan 2008 18:24:15 +0200 Subject: [PATCH] Callback needs gps --- src/map.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } /** -- 2.39.5