[g-a-devel]State Change Notifications



Remus and All:

The correct event to register for is "object:state-change" not "object:state-changed" as your previous mail indicated...

Due to a patch I just submitted, you can now register for specific state change notifications,. For example, you can register for:

"object:state-change:checked"
"object:state-changed:focused"
etc.

The first detail is 0 if the state is being cleared, 1 if it is being set. So, if you register for the generic state-change event, you can do comparisons on the last part of the event type to tell what state has changed. To make the string comparisons more efficient in this case, you may wish to use the GQuark stuff.

Regards,

Marc




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