Re: how to tell gtk to update only the GUI

2006-05-05 Thread Gian Mario Tagliaretti
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 o

Re: how to tell gtk to update only the GUI

2006-05-05 Thread Mehmet YASAR
Do you mean you offer no means to cancel the lengthy processing? That's bad. Yes that's voluntary since in my case the processing should take only few seconds (60 seconds at worst). Mehmet ___ gtk-app-devel-list mailing list gtk-app-devel-list@gno

Re: how to tell gtk to update only the GUI

2006-05-04 Thread Yeti
On Wed, May 03, 2006 at 08:08:06PM +0200, Mehmet YASAR wrote: > > That should work, however it doesn't seems to be what I need > (gtk_grab_add need at least one gtkwidget). Do you mean you offer no means to cancel the lengthy processing? That's bad. Yeti -- Anonyms eat their boogers. ___

Re: how to tell gtk to update only the GUI

2006-05-04 Thread Mehmet YASAR
> 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. That should work, however it doesn't seems to be what I need (gtk_grab_add need at least one gt

Re: how to tell gtk to update only the GUI

2006-05-03 Thread David Necas (Yeti)
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 a

Re: how to tell gtk to update only the GUI

2006-05-03 Thread Tristan Van Berkom
Mehmet YASAR wrote: Hi all, I'm doing some lengthy calculations and I'd like to tell gtk to update only the GUI (gtk should process ONLY expose events). Obviously, there is gtk_main_iteration() but that's processing all pending events (keypress, timers ...), that means I have to disable all