]> git.street.me.uk Git - andy/viking.git/commit
Threading rewrite to remove use of unsupported cross platform threading update of...
authorRob Norris <rw_norris@hotmail.com>
Sat, 23 Apr 2016 11:18:50 +0000 (12:18 +0100)
committerRob Norris <rw_norris@hotmail.com>
Mon, 13 Mar 2017 23:39:01 +0000 (23:39 +0000)
commitd3b7baa79d155131dd3e55ddffd881913378aa59
treef310f8e3aa8016f4f6d74898a881adb9d3f7e5b1
parent429549d9abaf9684b12e36657228b25efee34254
Threading rewrite to remove use of unsupported cross platform threading update of the GUI.

When Viking is run on a real Windows system (i.e. not just under wine)
 that has been built via the new cross build mechanism, it will lock up whenever a window is moved.

Remove all use of gdk_threads_enter() / gdk_threads_leave() and always use the main thread to update the GUI.
Thus make extensive changes to ensure updates are directed through gdk_threads_add_idle() or gtk_idle_add()
 and protection to prevent use of data that has gone out of scope.

This should be more reliable.
src/background.c
src/bingmapsource.c
src/datasource_gps.c
src/main.c
src/vikdemlayer.c
src/vikgpslayer.c
src/viktrwlayer.c
src/vikwindow.c