! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Binding function with negation
Status:
RESOLVED: INVALID
Severity:
enhancement
Product:
Xfconf
Component:
Libxfconf

Comments

Description Mike Massonnet editbugs 2009-03-25 20:57:55 CET
It would be good to have a function like exo_binding_new_with_negation, so it is still unecessary to write a signal callback for two properties that are logical on the opposite value.
Comment 1 Brian J. Tarricone (not reading bugmail) 2009-03-25 22:40:37 CET
Why not just design your property names better so there's no negation?
Comment 2 Mike Massonnet editbugs 2009-03-26 05:48:53 CET
That's what I did. I once had to change a "show" option to "hide", and I figured I had better rename the xfconf property aswell.

So, no-go?
Comment 3 Brian J. Tarricone (not reading bugmail) 2009-03-26 06:03:27 CET
Can you think of a use case where renaming the property would be a problem?  Obviously you can't rename the gobject property (unless it's one you've created yourself), but are there times when renaming the xfconf property name would be a really bad idea?
Comment 4 Mike Massonnet editbugs 2009-03-26 06:15:58 CET
Really I don't find a use case. The most probable use case would be for checkbox', where it is not a big deal to rename the property.

Bug #5150

Reported by:
Mike Massonnet
Reported on: 2009-03-25
Last modified on: 2009-03-26

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
0 users

Version

Version:
Unspecified

Attachments

Additional information