mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
menu: don't fill default items in empty menus
This is needed to prevent pipemenus which usually contains no items from being filled with default items in follow-up commits.
This commit is contained in:
parent
ea4ea84499
commit
40dfee7bd5
1 changed files with 0 additions and 4 deletions
|
|
@ -1085,8 +1085,6 @@ init_rootmenu(struct server *server)
|
|||
if (!menu) {
|
||||
current_menu = NULL;
|
||||
menu = menu_create(server, "root-menu", "");
|
||||
}
|
||||
if (wl_list_empty(&menu->menuitems)) {
|
||||
current_item = item_create(menu, _("Reconfigure"), false);
|
||||
fill_item("name.action", "Reconfigure");
|
||||
current_item = item_create(menu, _("Exit"), false);
|
||||
|
|
@ -1103,8 +1101,6 @@ init_windowmenu(struct server *server)
|
|||
if (!menu) {
|
||||
current_menu = NULL;
|
||||
menu = menu_create(server, "client-menu", "");
|
||||
}
|
||||
if (wl_list_empty(&menu->menuitems)) {
|
||||
current_item = item_create(menu, _("Minimize"), false);
|
||||
fill_item("name.action", "Iconify");
|
||||
current_item = item_create(menu, _("Maximize"), false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue