29 Apr
2015
29 Apr
'15
10:08 a.m.
On 23.04.2015 23:24, Xun Xiao wrote:
I am currently trying to update the GraphWidget in a thread (because the topology, and plot properties change from time to time).
I put regenerate_surface() and queue_draw() in the thread, however, the GraphWdiget will become dead..
Does anyone know a good way to update the drawing? thanks a lot!
Gtk+ and cairo are not thread safe like this! You need to call all drawing commands from the same thread if they share some state. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>