Re: [gtkmm] Real-time redraw



On Mon, Nov 03, 2003 at 08:01:48PM +0100, Luis Pastor Vegas wrote:
> I'm developing a real-time application using gtkmm-2.2.5. There are two 
> threads, the GTK main loop thread and a CORBA thread that receives data 
> from another application. This data is updated real-time calling to a 
> Gtk::Label::set_text() method but the corresponding label is not redrawn 
> until I move the cursor!!!

You are not supposed to call gtkmm functions directly from the other thread:
http://www.gtkmm.org/gtkmm2/docs/FAQ/html/index.html#id2439265

Use Glib::Dispatcher to let the CORBA thread notify the main thread when
something has happened.

/Fredrik Arnerup
e97_far e kth se



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