Confusion displaying windows



Hi all,

I am trying to display a window with a status indicator in it when the
user invokes a particular callback. The code looks something like this:


void
on_generate_gdf_button_clicked         (GtkButton       *button,

gpointer         user_data)
{

   GtkWidget *progress_window;

   progress_window = create_progress_window();
   gtk_widget_show (progress_window);

 .................--- code continues


   gtk_object_destroy(GTK_OBJECT(progress_window));

}

Unfortunately the progress_window does not display on screen after the gtk_widget_show(progress_window)

call, but instead it appears on screen after the on_generate_gdf_button_clicked callback exits.

Can anyone offer some advice on this point? Is there a "refresh" function that needs to be called?

Thanks

--
Marco Quezada
Aerospaceo Engineero
NLX Corporation
22626 Sally Ride Dr.
Sterling, VA, 20164
703-234-2100 x1028







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