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]

 



Hi everyone,

The background is that I need to update the sensitivity of UI elements when proper. I tried to do it in a low priority idle callback that is running forever. But that will cause 100% CPU usage. So I'd like to do it in a callback that is called only once each time when the event queue becomes empty. Do you have any idea? Or is there any better approach to updating UI elements?

Thanks,
Gang

_______________________________________________
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