mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
menu: use wl_list instead of array
...to make it easier to split menu.c into smaller chunks without exposing nr_menus variable.
This commit is contained in:
parent
b22722dafa
commit
a105c8781a
5 changed files with 29 additions and 38 deletions
|
|
@ -493,7 +493,7 @@ show_menu(struct server *server, struct view *view, const char *menu_name)
|
|||
}
|
||||
|
||||
bool force_menu_top_left = false;
|
||||
struct menu *menu = menu_get_by_id(menu_name);
|
||||
struct menu *menu = menu_get_by_id(server, menu_name);
|
||||
if (!menu) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue