Protect the GPS layer initiated map drawing update in the same way as the Map 
layer background download maps draw update works.
---
 src/vikgpslayer.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/vikgpslayer.c b/src/vikgpslayer.c
index 2a6f767..0f4b440 100644
--- a/src/vikgpslayer.c
+++ b/src/vikgpslayer.c
@@ -1311,7 +1311,9 @@ static void gpsd_raw_hook(VglGpsd *vgpsd, gchar *data)
     vgl->first_realtime_trackpoint = FALSE;
     create_realtime_trackpoint(vgl, FALSE);
 
+    gdk_threads_enter();
     vik_layer_emit_update ( update_all ? VIK_LAYER(vgl) : 
VIK_LAYER(vgl->trw_children[TRW_REALTIME]));
+    gdk_threads_leave();
   }
 }
 
-- 
1.7.1


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Reply via email to