Re: How to add a callback that can be called whenever the event loop calls an event handler?
- From: "Jasper St. Pierre" <jstpierre mecheye net>
- To: Gang Chen <gang chen cn gmail com>
- Cc: gtk-list <gtk-list gnome org>, Paul Davis <paul linuxaudiosystems com>
- Subject: Re: How to add a callback that can be called whenever the event loop calls an event handler?
- Date: Wed, 23 Jul 2014 13:43:26 -0400
So every single time somebody presses a key or clicks a button or even moves your window, or even when a redraw is queued on the window, you want to check the internal state of the window and possibly "do something"? That sounds like a ridiculously bad design to me, personally.
Just call the function whenever state might change.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]