mirror of
https://github.com/0intro/wmii
synced 2024-11-22 13:52:17 +03:00
Replace Action- with Action_ in wmiirc
This commit is contained in:
parent
f02ebd6d4f
commit
59fe492d74
2
area.c
2
area.c
@ -417,7 +417,7 @@ select_area(Area *a, char *arg) {
|
|||||||
}else {
|
}else {
|
||||||
if(sscanf(arg, "%u", &i) != 1 || i == 0)
|
if(sscanf(arg, "%u", &i) != 1 || i == 0)
|
||||||
return Ebadvalue;
|
return Ebadvalue;
|
||||||
for(new=view->area->next; new->next && i; new=new->next)
|
for(new=view->area->next; new->next; new=new->next)
|
||||||
if(!--i) break;
|
if(!--i) break;
|
||||||
}
|
}
|
||||||
focus_area(new);
|
focus_area(new);
|
||||||
|
@ -152,7 +152,7 @@ tagsmenu() {
|
|||||||
Action() {
|
Action() {
|
||||||
action=\$1; shift
|
action=\$1; shift
|
||||||
if [ -n "\$action" ]; then
|
if [ -n "\$action" ]; then
|
||||||
Action-\$action \$@ || \$(conf_which "\$action") \$@
|
Action_\$action \$@ || \$(conf_which "\$action") \$@
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
wmiiloop
2
wmiiloop
@ -41,7 +41,7 @@ END {
|
|||||||
for(action in actions) {
|
for(action in actions) {
|
||||||
gsub("\"", "\\\"", action)
|
gsub("\"", "\\\"", action)
|
||||||
print "ACTIONS=\"$ACTIONS\n" action "\""
|
print "ACTIONS=\"$ACTIONS\n" action "\""
|
||||||
print "Action-" action "() {" actions[action] "\n}"
|
print "Action_" action "() {" actions[action] "\n}"
|
||||||
}
|
}
|
||||||
while(readevent | getline) {
|
while(readevent | getline) {
|
||||||
split($0, arg)
|
split($0, arg)
|
||||||
|
@ -61,7 +61,7 @@ set to further arguments.
|
|||||||
.TP 2
|
.TP 2
|
||||||
.BI "Action " name
|
.BI "Action " name
|
||||||
A function called
|
A function called
|
||||||
.BI Action\- name
|
.BI Action_ name
|
||||||
is created with
|
is created with
|
||||||
.I body
|
.I body
|
||||||
as its body, and
|
as its body, and
|
||||||
|
Loading…
Reference in New Issue
Block a user