mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
src/action.c: Convert action->arg to a list of action_arg
In preperation for Actions that require multiple arguments
This commit is contained in:
parent
baaee26937
commit
9b49f19a73
8 changed files with 142 additions and 61 deletions
|
|
@ -238,16 +238,16 @@ fill_item(char *nodename, char *content)
|
|||
wlr_log(WLR_ERROR, "expect <action name=\"\"> element first. "
|
||||
"nodename: '%s' content: '%s'", nodename, content);
|
||||
} else if (!strcmp(nodename, "command.action")) {
|
||||
current_item_action->arg = strdup(content);
|
||||
action_arg_add_str(current_item_action, NULL, content);
|
||||
} else if (!strcmp(nodename, "execute.action")) {
|
||||
/*
|
||||
* <action name="Execute"><execute>foo</execute></action>
|
||||
* is deprecated, but we support it anyway for backward
|
||||
* compatibility with old openbox-menu generators
|
||||
*/
|
||||
current_item_action->arg = strdup(content);
|
||||
action_arg_add_str(current_item_action, NULL, content);
|
||||
} else if (!strcmp(nodename, "to.action")) {
|
||||
current_item_action->arg = strdup(content);
|
||||
action_arg_add_str(current_item_action, NULL, content);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue