Re: discoveries! gtk DOES dim... how can i infinite-loop?
- From: Michael Torrie <torriem gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: discoveries! gtk DOES dim... how can i infinite-loop?
- Date: Thu, 19 Jan 2012 21:34:23 -0700
On 01/19/2012 01:58 AM, Gary Kline wrote:
i've spent the last many days tryoing [on ubuntu] anf tonight on my
EEE-900A netbook [debian]. both dim when i go into a recursive
loop.
1. edit with gvim
2. have espeak voice gvim when it is written
3 goto 1;
tonight i did everything absolutedly write in chercking various
things, but the app still dimd if i have the function call itselg.
i should have asked this list whether there there is a gtk call
that let's things go into either an infinite loop, or, would a
for() loop work for 300-500 loops?
I already gave you the answer to this. While you are looping in your
callback you have to iterate the GTK main loop:
while (some long-running thing) {
while (gtk_events_pending ()) {
gtk_main_iteration ();
}
//do something
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]