mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
rcxml.c: support 'to.action' in mousebind
...in support to specifying 'left', 'right' and so on with actions
GoToDesktop and SendToDesktop.
For example:
<mouse>
<default/>
<context name="Desktop">
<mousebind button="Up" action="Scroll">
<action name="GoToDesktop" to="left"/>
</mousebind>
<mousebind button="Down" action="Scroll">
<action name="GoToDesktop" to="right"/>
</mousebind>
</context>
</mouse>
This commit is contained in:
parent
5fb18a7016
commit
e9c3080f76
1 changed files with 2 additions and 0 deletions
|
|
@ -139,6 +139,8 @@ fill_mousebind(char *nodename, char *content)
|
|||
action_arg_add_str(current_mousebind_action, NULL, content);
|
||||
} else if (!strcmp(nodename, "menu.action")) {
|
||||
action_arg_add_str(current_mousebind_action, NULL, content);
|
||||
} else if (!strcmp(nodename, "to.action")) {
|
||||
action_arg_add_str(current_mousebind_action, NULL, content);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue