Summary: | Add extensions to allow accounts to be hidden from the main AccountManager interface | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Will Thompson <will> |
Component: | mission-control | Assignee: | Telepathy bugs list <telepathy-bugs> |
Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | vivek |
Version: | git master | Keywords: | patch |
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | review+ | ||
i915 platform: | i915 features: |
Description
Will Thompson
2011-01-10 11:50:08 UTC
I've updated the hidden backend to be conditionally compiled, and to set a different name and description to that of its parent class. Minor quibble: The interface alread has Hidden in its name, and only deals with hidden accounts, so I think it would be better not to have "Hidden" also in the properties and methods: ie: Blah.Hidden.ValidAccounts rather than: Blah.Hidden.ValidHiddenAccounts Admittedly a very minor point: Other than that, looks fine. (In reply to comment #2) > Minor quibble: The interface alread has Hidden in its name, > and only deals with hidden accounts, so I think it would be > better not to have "Hidden" also in the properties and methods: > > ie: > > Blah.Hidden.ValidAccounts > > rather than: > > Blah.Hidden.ValidHiddenAccounts > > Admittedly a very minor point: Other than that, looks fine. This is to work around a dbus-glib bug. The signal names need to be unique across all interfaces implemented by an object. So AM.I.Hidden.HiddenAccountValidityChanged can't be called AM.I.Hidden.AccountValidityChanged, because this conflicts with AM.AccountValidityChanged. (It works by objects emitting corresponding GObject signals; unfortunately the names dbus-glib expects are based only on the signal name, not on the interface too.) It makes me unhappy too! The properties only have stupid redundant names for consistency, so I could rename those, depending on whether brevity in property names is worth the inconsistency. (In reply to comment #3) > This is to work around a dbus-glib bug. The signal names need to be unique > across all interfaces implemented by an object. Methods should usually also be unique across all interfaces, for ease of use with deficient bindings (dbus-python in this case). Properties I'm less sure about, but I'm sure there's some binding that gets this wrong too :-/ Eh, I wouldn't bother renaming then. Just shake your fist at dbus-glib and move on for now, I reckon. Released in 5.7.2 |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.