Re: how to have a events processed outside of gtk_main()
- From: "Brian J. Murrell" <gtk-list-in interlinx bc ca>
- To: gtk-list redhat com
- Subject: Re: how to have a events processed outside of gtk_main()
- Date: Sat, 28 Aug 1999 13:53:04 -0700 (PDT)
from the quill of Havoc Pennington <hp@redhat.com> on scroll
<Pine.LNX.4.10.9908281122450.21652-100000@icon.labs.redhat.com>
>
> Check the FAQ under "how do I make a progress bar update?" or
> something
> like that.
D'oh! Now I am embarassed. My appologies for not do that in the first
place. I was so close in my attempt. I found the gtk_main_iteration()
function but I just did not realize to put it into a
while(gtk_events_pending()) loop. Works like a charm!
For those interested, simply put one of these where you want the
application to show an update (outside of gtk_main() of course):
while (gtk_events_pending())
gtk_main_iteration();
--
Brian J. Murrell InterLinx Support Services, Inc.
North Vancouver, B.C. 604 983 UNIX
Platform and Brand Independent UNIX Support - R3.2 - R4 - BSD
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]