Adapt config MACROs SETPROP, DOWNLOAD, PLUMB
As we now use directly const strings from WebKitGTK, “constify” arg void pointer.
This commit is contained in:
parent
2d1e422368
commit
5def2e51da
|
@ -37,7 +37,7 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
|
||||||
WEBKIT_FIND_OPTIONS_WRAP_AROUND;
|
WEBKIT_FIND_OPTIONS_WRAP_AROUND;
|
||||||
|
|
||||||
#define SETPROP(p, q) { \
|
#define SETPROP(p, q) { \
|
||||||
.v = (char *[]){ "/bin/sh", "-c", \
|
.v = (const char *[]){ "/bin/sh", "-c", \
|
||||||
"prop=\"`xprop -id $2 $0 " \
|
"prop=\"`xprop -id $2 $0 " \
|
||||||
"| sed \"s/^$0(STRING) = \\(\\\\\"\\?\\)\\(.*\\)\\1$/\\2/\" " \
|
"| sed \"s/^$0(STRING) = \\(\\\\\"\\?\\)\\(.*\\)\\1$/\\2/\" " \
|
||||||
"| xargs -0 printf %b | dmenu`\" &&" \
|
"| xargs -0 printf %b | dmenu`\" &&" \
|
||||||
|
@ -48,7 +48,7 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
|
||||||
|
|
||||||
/* DOWNLOAD(URI, referer) */
|
/* DOWNLOAD(URI, referer) */
|
||||||
#define DOWNLOAD(d, r) { \
|
#define DOWNLOAD(d, r) { \
|
||||||
.v = (char *[]){ "/bin/sh", "-c", \
|
.v = (const char *[]){ "/bin/sh", "-c", \
|
||||||
"st -e /bin/sh -c \"curl -L -J -O --user-agent '$1'" \
|
"st -e /bin/sh -c \"curl -L -J -O --user-agent '$1'" \
|
||||||
" --referer '$2' -b $3 -c $3 '$0';" \
|
" --referer '$2' -b $3 -c $3 '$0';" \
|
||||||
" sleep 5;\"", \
|
" sleep 5;\"", \
|
||||||
|
@ -61,7 +61,7 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
|
||||||
* "http://" or "https://" should be opened.
|
* "http://" or "https://" should be opened.
|
||||||
*/
|
*/
|
||||||
#define PLUMB(u) {\
|
#define PLUMB(u) {\
|
||||||
.v = (char *[]){ "/bin/sh", "-c", \
|
.v = (const char *[]){ "/bin/sh", "-c", \
|
||||||
"xdg-open \"$0\"", u, NULL \
|
"xdg-open \"$0\"", u, NULL \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue