Re: How to add a callback that will be called each time when the event queue becomes empty
- From: Gang Chen <gang chen cn gmail com>
- To: richard boaz <ivor boaz gmail com>
- Cc: gtk-list <gtk-list gnome org>
- Subject: Re: How to add a callback that will be called each time when the event queue becomes empty
- Date: Sat, 20 Jul 2013 03:45:33 +0800
Richard,
The UI elements are GTK actions whose sensitivity states are related to the states of the application. There are many possibilities that may change the sensitivity. If I update UI elements whenever necessary, I need to write too much code doing update. I prefer writing one function that updates all UI elements according to the current states. And I need to call that function when idle. This approach is simpler and cleaner.
Thanks,
Gang
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]