~chrisccoulson/libdbusmenu/lp723873

Viewing all changes in revision 241.

  • Committer: Chris Coulson
  • Date: 2011-02-28 22:47:04 UTC
  • Revision ID: chrisccoulson@ubuntu.com-20110228224704-5xcf6vw34c97nzu6
Fix LP: #723873 - when a menuitems property is restored to a default value, the new
state is not updated correctly on the listening client. Make dbusmenu_menuitem_property_remove call
dbusmenu_menuitem_property_set_variant with a NULL value rather than manipulating the properties
directly. When removing a property that has a default value now, it will signal PROPERTY_CHANGED
with the default value, which means that changing a property from non-default to default over the
wire (which really just deletes the property) now works correctly. This is also now more aligned with
how dbusmenu_menuitem_property_get* works, which will return the default value for a property
after removing the property from the menuitem

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: