[gtkmm] Problem with main loops/heavy load



Greetings,

I have a small problem which I am not able to solve on my own.
I have a processing function connected to a signal_timeout which
is called 24 times a second. The updating of the GUI elements
is therefore very slow. In GTK FAQ it is stated for GTK1 that
the processing function should do this:

while (g_main_iteration(FALSE));

(which is deprecated)
...so I figured out I should do something like this in gtkmm2:

Gtk::Main::iteration(false);

or this:

while ( (Glib::MainContext::get_default())->iteration(false) );

...but neither one of these work the way I thought they'd do:
Instead the whole thing is suspended until some event comes in
(mouse movement or whatever) and immediately blocks again after
it has processed the event.
What's wrong? I am passing 'false' to the blocking parameter
both times.


Best regards,

Leslie


[ Please CC me, I'm not subscribed. ]

-- 
Current Main System: LFS Linux dreadnought 2.4.21-openmosix-1 #9 Wed Jul 9 12:15:29 CEST 2003 i686
Random Religious Statement: ...AT&T assembly? Now who's the masochist here!.



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