mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Remove unused function menu_call_actions()
This commit is contained in:
parent
7a5b7aa378
commit
6bbdc3c6dc
2 changed files with 0 additions and 21 deletions
|
|
@ -100,18 +100,6 @@ void menu_open_root(struct menu *menu, int x, int y);
|
||||||
*/
|
*/
|
||||||
void menu_process_cursor_motion(struct wlr_scene_node *node);
|
void menu_process_cursor_motion(struct wlr_scene_node *node);
|
||||||
|
|
||||||
/**
|
|
||||||
* menu_call_actions - call actions associated with a menu node
|
|
||||||
*
|
|
||||||
* If menuitem connected to @node does not just open a submenu:
|
|
||||||
* - associated actions will be called
|
|
||||||
* - server->menu_current will be closed
|
|
||||||
* - server->menu_current will be set to NULL
|
|
||||||
*
|
|
||||||
* Returns true if actions have actually been executed
|
|
||||||
*/
|
|
||||||
bool menu_call_actions(struct wlr_scene_node *node);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* menu_close_root- close root menu
|
* menu_close_root- close root menu
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -1544,15 +1544,6 @@ menu_process_cursor_motion(struct wlr_scene_node *node)
|
||||||
menu_process_item_selection(item);
|
menu_process_item_selection(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
|
||||||
menu_call_actions(struct wlr_scene_node *node)
|
|
||||||
{
|
|
||||||
assert(node && node->data);
|
|
||||||
struct menuitem *item = node_menuitem_from_node(node);
|
|
||||||
|
|
||||||
return menu_execute_item(item);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
menu_close_root(struct server *server)
|
menu_close_root(struct server *server)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue