client: deprecate minimize in favor of minimized

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-11-25 11:55:56 +01:00
parent 576a1e85fc
commit e0de3b153e
3 changed files with 6 additions and 1 deletions

View File

@ -1435,6 +1435,8 @@ luaA_client_newindex(lua_State *L)
} }
break; break;
case A_TK_MINIMIZE: case A_TK_MINIMIZE:
luaA_deprecate(L, "client.minimized");
case A_TK_MINIMIZED:
client_setminimized(*c, luaA_checkboolean(L, 3)); client_setminimized(*c, luaA_checkboolean(L, 3));
break; break;
case A_TK_FULLSCREEN: case A_TK_FULLSCREEN:
@ -1641,6 +1643,8 @@ luaA_client_index(lua_State *L)
lua_pushboolean(L, (*c)->ishidden); lua_pushboolean(L, (*c)->ishidden);
break; break;
case A_TK_MINIMIZE: case A_TK_MINIMIZE:
luaA_deprecate(L, "client.minimized");
case A_TK_MINIMIZED:
lua_pushboolean(L, (*c)->isminimized); lua_pushboolean(L, (*c)->isminimized);
break; break;
case A_TK_FULLSCREEN: case A_TK_FULLSCREEN:

View File

@ -51,6 +51,7 @@ maximized_horizontal
maximized_vertical maximized_vertical
middle middle
minimize minimize
minimized
Mod1 Mod1
Mod2 Mod2
Mod3 Mod3

View File

@ -280,7 +280,7 @@ local function widget_tasklist_label_common(c, args)
if c.floating and floating_icon then if c.floating and floating_icon then
text = text.."<bg image=\"" .. floating_icon .. "\" align=\"" .. floating_icon_align .. "\"/>" text = text.."<bg image=\"" .. floating_icon .. "\" align=\"" .. floating_icon_align .. "\"/>"
end end
if c.minimize then if c.minimized then
name = util.escape(c.icon_name) or "" name = util.escape(c.icon_name) or ""
else else
name = util.escape(c.name) or "" name = util.escape(c.name) or ""