Re: problems with the redraw of widgets and callbacks with long operation time
- From: Joe Pfeiffer <pfeiffer cs nmsu edu>
- To: Ignacio Nodal <inodal teleline es>
- Cc: rsteinke w-link net, gtk-list gnome org
- Subject: Re: problems with the redraw of widgets and callbacks with long operation time
- Date: Tue, 12 Feb 2002 15:37:48 -0700
Ignacio Nodal writes:
>
> I've tried with:
>
> while (gtk_events_pending())
> gtk_main_iteration();
>
> before calling my VRML load function, but gtk_events_pending returns 0.
>
> I've also asked for gdk_events_pending, since i'm working with
> GtkGLArea, being a "subclass" of GtkDrawingArea , but this one returns 0
> also.
Not before, during. You need to find a point in your load function
that is executed fairly frequently (like once per outer loop iteration
or something) and look for events there. What's going on is exactly
what you're suspecting: once you get into that loop, it's not looking
for expose (or any other) events any more, until the function
returns. So that's what you need to fix.
--
Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605
Department of Computer Science FAX -- (505) 646-1002
New Mexico State University http://www.cs.nmsu.edu/~pfeiffer
Southwestern NM Regional Science and Engr Fair: http://www.nmsu.edu/~scifair
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]