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 <[email protected]>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ graph-tool mailing list [email protected] http://lists.skewed.de/mailman/listinfo/graph-tool
