Re: GTKEntry, need help with Multi-Threading & GUI Updating....



Allen,

As far as threading goes,  the following should help: http://www.gtkmm.org/docs/gtkmm-2.4/docs/FAQ/html/index.html#id2516102 Scroll down to 4.12.

Also, let me get this straight: the way you set things up is by having your other thread generate numeric
data, which you then pass to the GUI thread (however that's done) for displaying.  If my understanding is correct,
then you shouldn't need anything like

 while( Gtk::Main::events_pending() )
     Gtk::Main::iteration(false);

If all else is done right, set_text(...)  will do the job.


Regards,

Nickolai


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