Re: Multiple threads and drawing



This is very hard to answer, but as a general rule and probably approximation to the truth you should avoid any calls into Gtk+ not using the GUI/main thread.

2008/6/18 Germán Diago <germandiago gmail com>:
>Gtk::Label::set_text() definitely causes a redraw of the label in question. Gtk::Table::attach() will probably cause an immediate redraw of the Table in >question as well as the new child. You should check your code for GUI calls from a non-main thread.


Is it specified anywhere which operations imply redrawing? Because
there's a lot overhead in coding all GUI things in the GUI thread.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]