Question about Timeouts



Hi,

I have not quite figured this one out. I have a callback that shows a
pop_up menu that displays a series of pixmaps. It looks something like
this:

    banner_window = create_banner_window ();

   timeout_id = gtk_timeout_add(1500.0, timout_callback, banner_window);

   gtk_widget_show(banner_window);
   gtk_window_reposition(GTK_WINDOW(banner_window), x_pos, y_pos);

   while(gtk_events_pending())
   {
      gtk_main_iteration();
   }

//---- callback continues

My question is: Will the timeout function get called if the timer period
expires while still inside the callback? or does the timer only run
while gtk is in the gtk_main function?

I ask this because this pixmaps should display while the processes in
the callback are being run but it onlly seems to get run after the
callback exits.

Thanks

--
Marco Quezada
Aerospaceo Engineero
NLX Corporation
22626 Sally Ride Dr.
Sterling, VA, 20164
mquezada nlxcorp com
703-234-2100 x1028
http://www.nlxcorp.com







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