Merge lp:~bratsche/appmenu-gtk/parent-tracking into lp:appmenu-gtk/0.4
Proposed by
Cody Russell
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 101 | ||||
Proposed branch: | lp:~bratsche/appmenu-gtk/parent-tracking | ||||
Merge into: | lp:appmenu-gtk/0.4 | ||||
Diff against target: |
127 lines (+53/-8) 1 file modified
src/bridge.c (+53/-8) |
||||
To merge this branch: | bzr merge lp:~bratsche/appmenu-gtk/parent-tracking | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ted Gould (community) | Approve | ||
Review via email: mp+37762@code.launchpad.net |
Description of the change
dbusmenu doesn't have a way to retrieve the parent menuitem of a child, but we need that in order to delete a child. So we'll use g_object_
This fixes an issue with Nautilus's bookmark manager, where adding or removing a bookmark results in several copies of all the dynamic menuitems being added to that menu, and it keeps getting larger until Nautilus is restarted.
To post a comment you must log in.
I'm trying to figure if we need a weak ref on the parent. I think that it's okay as you're not moving menuitems around to different parents anywhere else in appmenu-gtk. But, I think you should probably put a comment in for when something changes :)