Re: [gtk-list] Progress bar widget



On Mon, 06 Sep 1999 08:02:30 -0600, rhfreeman wrote:
> HELP! This is driving me mad....
> 
> I am trying to use a progress bar - but I can't get it to appear when it
> should! The source has been heavily "based" :) upon the example from
> testgtk.c.
> 
> I call create_progress_bar() and then start loading in a file - but only
> when the file has finished loading and the main widget is updated does the
> progress bar appear. I have tried using...
> 
> gtk_widget_show_all();
> gtk_widget_show();
> gtk_widget_draw();
> 
> ...but none of them make it appear when the function is actually called.
> 
> Any ideas?

Yes, it is in the GTK+ FAQ at www.gtk.org . Use

  while(gtk_events_pending())
    gtk_main_iteration();

every now and then to update the interface while loading your file.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/




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