mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
action: add "ShowMenu" option
Parse the following in rc.xml:
<keyboard>
<keybind key="">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>
</keyboard>
This commit is contained in:
parent
a26fd5a75b
commit
543f00131c
4 changed files with 28 additions and 9 deletions
|
|
@ -56,6 +56,8 @@ fill_keybind(char *nodename, char *content)
|
|||
current_keybind->action = strdup(content);
|
||||
} else if (!strcmp(nodename, "command.action")) {
|
||||
current_keybind->command = strdup(content);
|
||||
} else if (!strcmp(nodename, "menu.action")) {
|
||||
current_keybind->command = strdup(content);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue