mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
menu: remove ShowMenu action from menu items
Previous commits fixed some unexpected behaviors when ShowMenu action is executed from menu items, but that was still prone to bugs because when calling actions_run(), we allow an inconsistent state where all menus are closed but pipemenus must not be destroyed. So this commit simply removes ShowMenu actions from menu items on initialization.
This commit is contained in:
parent
8f5217c98b
commit
fb5e85f40f
3 changed files with 13 additions and 1 deletions
|
|
@ -606,6 +606,12 @@ action_is_valid(struct action *action)
|
|||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
action_is_show_menu(struct action *action)
|
||||
{
|
||||
return action->type == ACTION_TYPE_SHOW_MENU;
|
||||
}
|
||||
|
||||
void
|
||||
action_free(struct action *action)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue