summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/actions.c b/src/actions.c
index bb129ae..481c8eb 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -68,7 +68,9 @@ static cmdret * set_bgcolor (struct cmdarg **args);
static cmdret * set_fwcolor (struct cmdarg **args);
static cmdret * set_bwcolor (struct cmdarg **args);
static cmdret * set_barpadding (struct cmdarg **args);
+#ifdef WINLISTSTYLE
static cmdret * set_winliststyle (struct cmdarg **args);
+#endif
static cmdret * set_framesels (struct cmdarg **args);
static cmdret * set_maxundos (struct cmdarg **args);
static cmdret * set_infofmt (struct cmdarg **args);
@@ -138,7 +140,9 @@ init_set_vars(void)
add_set_var ("fwcolor", set_fwcolor, 1, "", arg_STRING);
add_set_var ("bwcolor", set_bwcolor, 1, "", arg_STRING);
add_set_var ("barpadding", set_barpadding, 2, "", arg_NUMBER, "", arg_NUMBER);
+#ifdef WINLISTSTYLE
add_set_var ("winliststyle", set_winliststyle, 1, "", arg_STRING);
+#endif
add_set_var ("framesels", set_framesels, 1, "", arg_STRING);
add_set_var ("infofmt", set_infofmt, 1, "", arg_REST);
add_set_var ("topkmap", set_topkmap, 1, "", arg_STRING);
@@ -2095,6 +2099,13 @@ read_variable (struct argspec *spec, struct sbuf *s, struct cmdarg **arg)
if (var == NULL)
{
cmdret *ret = cmdret_new (RET_FAILURE, "unknown variable '%s'", input);
+#ifndef WINLISTSTYLE
+ if (!strcmp (input, "winliststyle"))
+ {
+ cmdret_free(ret);
+ ret = cmdret_new (RET_FAILURE, "'%s' is deprecated. Please notify ratpoison-devel@nongnu.org if you miss it.", input);
+ }
+#endif
free (input);
return ret;
}
@@ -4960,6 +4971,7 @@ cmd_verbexec (int interactive, struct cmdarg **args)
return cmdret_new (RET_SUCCESS, NULL);
}
+#ifdef WINLISTSTYLE
static cmdret *
set_winliststyle (struct cmdarg **args)
{
@@ -4975,6 +4987,7 @@ set_winliststyle (struct cmdarg **args)
return cmdret_new (RET_SUCCESS, NULL);
}
+#endif
cmdret *
cmd_gnext (int interactive, struct cmdarg **args)
@@ -5864,6 +5877,7 @@ cmd_compat (int interactive, struct cmdarg **args)
add_alias ("deffgcolor", "set fgcolor");
add_alias ("defbgcolor", "set bgcolor");
add_alias ("defbarpadding", "set barpadding");
+/* FIXME Deprecate the following alias together with everything else WINLISTSTYLE */
add_alias ("defwinliststyle", "set winliststyle");
add_alias ("defframesels", "set framesels");
add_alias ("defmaxundos", "set maxundos");