Merge lp:~dcbw/libdbusmenu/libdbusmenu into lp:libdbusmenu/15.10
Status: | Merged |
---|---|
Approved by: | Marco Trevisan (Treviño) |
Approved revision: | 479 |
Merged at revision: | 479 |
Proposed branch: | lp:~dcbw/libdbusmenu/libdbusmenu |
Merge into: | lp:libdbusmenu/15.10 |
Diff against target: |
276 lines (+59/-33) 4 files modified
configure.ac (+0/-1) libdbusmenu-gtk/client.c (+6/-1) libdbusmenu-gtk/genericmenuitem.c (+15/-10) libdbusmenu-gtk/parser.c (+38/-21) |
To merge this branch: | bzr merge lp:~dcbw/libdbusmenu/libdbusmenu |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marco Trevisan (Treviño) | Approve | ||
Dan Williams (community) | Needs Resubmitting | ||
Review via email: mp+286843@code.launchpad.net |
Commit message
gtk: look for GtkImages on regular GtkMenuItems too
GtkImageMenuItem is deprecated, and the recommended replacement
is a normal GtkMenuItem packed manually with a label and an image.
To ensure applications that use recommended GTK practices can still
show menu item images, check the children of a normal GtkMenuItem
for a GtkImage too, just like is done for the label child.
Description of the change
GtkImageMenuItem has been deprecated for a long time in upstream GTK; projects that use dbusmenu but do not want to depend on deprecated GTK functionality cannot use images in menu items because dbusmenu only looks for images on GtkImageMenuItems.
Upstream recommended replacement for GtkImageMenuItem is to simply pack your own label + image into a normal GtkMenuItem. Thus, make dbusmenu look for images in normal GtkMenuItems to.
Looks good, thanks for your contribution and the nice cleanup.
There's just one small fix to do: http:// paste.ubuntu. com/15180692/ otherwise libappindicator based menus will be misaligned (http:// i.imgur. com/DXqeWwy. png)