Re: Confusion displaying windows



Marco Quezada wrote:
Hello

Perhaps try 

  while (gtk_events_pending())
     gtk_main_iteration();

just after your gtk_widget_show()

Jerome

 
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




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