Re: How to add a callback that will be called each time when the event queue becomes empty

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

 



On 20 July 2013 01:57, Paul Davis <paul@xxxxxxxxxxxxxxxxxxxxx> wrote:
> the general solution to this is to use any kind of signalling system
> (g_object signals, boost signals, libsigc++ or whatever you prefer) to post
> notifications about state changes, and the callbacks/handlers for these
> signals should queue an idle callback that returns FALSE
>  (and only queue it if it is not already queued).

Yes, I do this too, though with a short timeout (100ms? I forget)
rather than an idle. This helps to join up many short state changes.

John
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list




[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux