mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 13:29:58 -05:00
menu: allow overwriting submenu icon
Allow overwriting the icon of item linking to another menu like below
(the icon for "krita" should be shown):
<openbox_menu>
<menu id="static-menu" label="Static Menu" icon="mpv" />
<menu id="root-menu" label="Root">
<menu id="static-menu" icon="krita" />
</menu>
</openbox_menu>
This commit also fixes my mistake in 17d66e5 (s/parent->icon/menu->icon/)
that showed incorrect icon in an item linking to another menu.
This commit is contained in:
parent
2a039d4f24
commit
72e1945a4c
1 changed files with 1 additions and 1 deletions
|
|
@ -613,7 +613,7 @@ fill_menu(struct server *server, struct menu *parent, xmlNode *n)
|
|||
}
|
||||
|
||||
struct menuitem *item = item_create(parent, menu->label,
|
||||
parent->icon_name, true);
|
||||
icon_name ? icon_name : menu->icon_name, true);
|
||||
item->submenu = menu;
|
||||
}
|
||||
error:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue