Re: gtk progress bar and gdk_flush()



Tom Liu wrote:

Use the fooling code to refresh progressbar will work, But the new
problem is that user may click other button during this loop.

  while (gtk_events_pending ()) gtk_main_iteration ();
<snip>

You could:
   A.) make the widgets that you dont want to be clicked "insensitive"
   B.) make your progressbar "modal" for your application. modal iirc is a
       property of an X window, anyway; it means that that is the only
       window that will recieve mouse events, usualy used for "OK|CANCEL"
       popups.

Cheers,
                           -Tristan





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