Re: gtk_events_pending



On Fri, 23 Apr 2004, Chris Manning wrote:
A quick question on gtk_events_pending ()
- where exactly is this supposed to go? I have put it in both my main
function and the function that it's supposed to be calling while events
are pending, and they both appear to work equally as well. Is this one
of those things that doesn't really matter, or should it belong in one
place or the other? Thanks!
Hello Chris!
I'm afraid I don't really understand what you're doing. I think this
function is intended to allow you to integrate the GTK-mainloop in your
own application mainloop. For example:

for (;;) {
  // process all pending GTK events
  while (gtk_events_pending()) gtk_main_iteration();

  // do some stuff for your applications own mainloop
  ....
}

Regards,
                     Peter
-- 
====================================================================
Peter Krüger

applied software solutions (appss) GmbH
Sandtorstr. 23
D-39106 Magdeburg
Germany

Phone:  +49-(0)391-54486-19388
Fax:    +49-(0)391-54486-19222
email:  krueger appss de
URL:    http://www.appss.de/

Managing Director: Uwe Hess, Dietmar Schäfer
Register: HRB12386, AG Magdeburg

"Virtual business becomes reality!"

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
====================================================================




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