From e0de3b153e9472aeff7475a219d668805d93c429 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 25 Nov 2008 11:55:56 +0100 Subject: [PATCH] client: deprecate minimize in favor of minimized Signed-off-by: Julien Danjou --- client.c | 4 ++++ common/tokenize.gperf | 1 + lib/awful/widget.lua.in | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/client.c b/client.c index 2a7c0c625..0f310da1f 100644 --- a/client.c +++ b/client.c @@ -1435,6 +1435,8 @@ luaA_client_newindex(lua_State *L) } break; case A_TK_MINIMIZE: + luaA_deprecate(L, "client.minimized"); + case A_TK_MINIMIZED: client_setminimized(*c, luaA_checkboolean(L, 3)); break; case A_TK_FULLSCREEN: @@ -1641,6 +1643,8 @@ luaA_client_index(lua_State *L) lua_pushboolean(L, (*c)->ishidden); break; case A_TK_MINIMIZE: + luaA_deprecate(L, "client.minimized"); + case A_TK_MINIMIZED: lua_pushboolean(L, (*c)->isminimized); break; case A_TK_FULLSCREEN: diff --git a/common/tokenize.gperf b/common/tokenize.gperf index f8cdb9e73..e7887eddd 100644 --- a/common/tokenize.gperf +++ b/common/tokenize.gperf @@ -51,6 +51,7 @@ maximized_horizontal maximized_vertical middle minimize +minimized Mod1 Mod2 Mod3 diff --git a/lib/awful/widget.lua.in b/lib/awful/widget.lua.in index d6e08a561..ff848302b 100644 --- a/lib/awful/widget.lua.in +++ b/lib/awful/widget.lua.in @@ -280,7 +280,7 @@ local function widget_tasklist_label_common(c, args) if c.floating and floating_icon then text = text.."" end - if c.minimize then + if c.minimized then name = util.escape(c.icon_name) or "" else name = util.escape(c.name) or ""