After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 728489 - property action with inverted boolean state
property action with inverted boolean state
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gapplication
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2014-04-18 09:53 UTC by Christian Persch
Modified: 2015-06-11 02:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Allow property actions to invert booleans (6.71 KB, patch)
2015-03-29 18:23 UTC, Matthias Clasen
committed Details | Review

Description Christian Persch 2014-04-18 09:53:31 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 "!").
Comment 1 Matthias Clasen 2015-03-29 18:23:21 UTC
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.
Comment 2 Matthias Clasen 2015-06-11 01:59:57 UTC
Attachment 300545 [details] pushed as 1102e6f - Allow property actions to invert booleans