Merge lp:~mterry/libdbusmenu/proxy-gtk-menu-images into lp:libdbusmenu/12.10
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Charles Kerr | ||||
Approved revision: | 422 | ||||
Merged at revision: | 422 | ||||
Proposed branch: | lp:~mterry/libdbusmenu/proxy-gtk-menu-images | ||||
Merge into: | lp:libdbusmenu/12.10 | ||||
Diff against target: |
115 lines (+63/-0) 1 file modified
libdbusmenu-gtk/parser.c (+63/-0) |
||||
To merge this branch: | bzr merge lp:~mterry/libdbusmenu/proxy-gtk-menu-images | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Charles Kerr (community) | Approve | ||
Review via email: mp+123576@code.launchpad.net |
Description of the change
There is a gsettings key org.gnome.
However, libdbusmenu does not notice. You can watch this happen by opening dconf-editor, toggling that key, and watching the behavior of the Power menu (which is native to the top bar) and the Network menu (which is proxied over dbusmenu by nm-applet). The Power menu changes appropriately. The Network menu does not.
This branch fixes that by updating parser.c to first, pay attention to which screen a widget is on. When that changes (or on init), we then watch that screen's GtkSettings object. And when it tells us the menu-icon value is different, we see if we need to change the icon we send over the wire.
Works for me in testing.
Looks good. Thanks for this!