gtk main loop



 Hello,

 I am doing some graphics stuff on a gtkwidget, rendering primitives,
etc...

 the main loop should be something like:

 while (!done)
 {
        render_stuff ();
        updatewidget();
 }

 But in the main loop, I call gtk_main, and this function doesnt return
till I close the app...

 I think I should use something like gtk_main_iteration, etc... but I
have no a clear idea about this. I must update when I finnish the
rendering, without sincronize to any expose event

 any suggestion?

 Thanks in advance!

-- 
signed
          derethor of centolos





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