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

Re: How do I flush signals and gray out a menu item?



On Fri, Jun 04, 1999 at 11:23:58AM -0700, Jeff Bergman wrote:

|     I am having two problems with an application I am writing.  One is
| that when I do some time-consuming processing in a loop none of the
| messages get through until it is done.  Is there some call that will

In the GTK+ FAQ we read:

    4.12 Why doesn't my widget (e.g. progressbar) update?

    You are probably doing all the changes within a function without
    returning control to gtk_main. Most drawing updates are only placed
    on a queue, which is processed within gtk_main. You can force the
    drawing queue to be processed using something like:

	while (gtk_events_pending())
		gtk_main_iteration();

    inside you're function that changes the widget.

Maybe this proves helpful in your case, too.  Dunno, since I haven't
tested this, but it looks like it would do the job.

-- 
     ?     | Giorgos E. Keramidas, <mailto:keramida@ceid.upatras.gr>
  >(o.o)<  | http://students.ceid.upatras.gr/~keramida/index.html
     O     | "Oggi non e` un giorno doppo ieri, ma un giorno prima di domani."



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