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 _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list