Merge lp:~chrisccoulson/libdbusmenu/lp723873 into lp:libdbusmenu/0.5
Status: | Merged |
---|---|
Approved by: | Ted Gould on 2011-03-01 |
Approved revision: | 242 |
Merged at revision: | 246 |
Proposed branch: | lp:~chrisccoulson/libdbusmenu/lp723873 |
Merge into: | lp:libdbusmenu/0.5 |
Diff against target: |
78 lines (+18/-24) 1 file modified
libdbusmenu-glib/menuitem.c (+18/-24) |
To merge this branch: | bzr merge lp:~chrisccoulson/libdbusmenu/lp723873 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ted Gould (community) | 2011-02-28 | Approve on 2011-03-01 | |
Review via email:
|
Description of the change
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_
- 242. By Chris Coulson on 2011-03-01
-
The last commit causes the warning in dbusmenu_
menuitem_ property_ is_default to be thrown
when removing a property that has no default value. This warning seems bogus though, as any property that is not
in the menuitems local property list is a default value (as that is what dbusmenu_menuitem_ property_ get* will return).
Simplify this function to work like this and drop the warning
Okay, makes sense. I really think someone shouldn't be asking if it's a default property on something that isn't local and in the defaults database, but they could get out of sync (idle collection) and default is safer.