GNOME Bugzilla – Bug 728489
property action with inverted boolean state
Last modified: 2015-06-11 02:00:02 UTC
Would be handy to have gpropertyaction for a boolean property invert the state between the property and the action. (That wouldn't need new API; could be as simple as transporting this with the property name, like doing this when the property name given is prefixed with "!").
Created attachment 300545 [details] [review] Allow property actions to invert booleans This can be handy when you want to change the sense of a toggle in the UI without rewriting the underlying logic. Currently, this is just exposed as a construct-only property. We may add a convenience wrapper or a special !property syntax for this later.
Attachment 300545 [details] pushed as 1102e6f - Allow property actions to invert booleans