2006/5/3, David Necas (Yeti) <[EMAIL PROTECTED]>:
On Wed, May 03, 2006 at 10:03:34AM -0400, Tristan Van Berkom wrote:
>
> If you need your application to refuse button & key press events
> (but still refresh itself graphicly), you should set the sensitivity
> of your buttons during the lengthly operation (and just ignore key
> press events).
I agree the right thing is normally to make the widgets
insensitive but it is possible to do what Mehmet requested
too with gtk_grab_add() on some `passive' widget -- see the
attached example.
Cool solution David, the only thing I did not understood is why you put twice:
while (gtk_events_pending())
gtk_main_iteration_do(FALSE);
is the second one really needed?
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress), 0.0);
gtk_progress_bar_set_text(GTK_PROGRESS_BAR(progress), NULL);
while (gtk_events_pending())
gtk_main_iteration_do(FALSE);
ciao
--
Gian Mario Tagliaretti
http://www.parafernalia.org/pygtk/
http://pygstdocs.berlios.de
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list