From ec5ae3dfb8a16f9b0c412a1a82b5f0a20501a518 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 4 Aug 2009 14:31:21 +0200 Subject: [PATCH] imagebox: remove valign This is not used anymore in rendering. Signed-off-by: Julien Danjou --- common/tokenize.gperf | 1 - lib/naughty.lua.in | 1 - widgets/imagebox.c | 10 ---------- 3 files changed, 12 deletions(-) diff --git a/common/tokenize.gperf b/common/tokenize.gperf index 9bee7c5c..10922e1e 100644 --- a/common/tokenize.gperf +++ b/common/tokenize.gperf @@ -111,7 +111,6 @@ top transient_for type urgent -valign version vertical visible diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index 3ad2f0ca..7d61d4eb 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -340,7 +340,6 @@ function notify(args) end iconbox.resize = false iconbox.image = img - iconbox.valign = "center" if hover_timeout then iconbox.mouse_enter = hover_destroy end end end diff --git a/widgets/imagebox.c b/widgets/imagebox.c index 856de69e..16306549 100644 --- a/widgets/imagebox.c +++ b/widgets/imagebox.c @@ -28,7 +28,6 @@ typedef struct /** Imagebox image */ image_t *image; color_t bg; - alignment_t valign; bool resize; } imagebox_data_t; @@ -95,7 +94,6 @@ imagebox_destructor(widget_t *w) * \param L The Lua VM state. * \param token The key token. * \param resize Resize image. - * \param valign Vertical alignment, top, bottom or center. * \return The number of elements pushed on stack. * \luastack * \lfield image The image to display. @@ -118,9 +116,6 @@ luaA_imagebox_index(lua_State *L, awesome_token_t token) case A_TK_RESIZE: lua_pushboolean(L, d->resize); break; - case A_TK_VALIGN: - lua_pushstring(L, draw_align_tostr(d->valign)); - break; default: return 0; } @@ -157,10 +152,6 @@ luaA_imagebox_newindex(lua_State *L, awesome_token_t token) case A_TK_RESIZE: d->resize = luaA_checkboolean(L, 3); break; - case A_TK_VALIGN: - if((buf = luaL_checklstring(L, 3, &len))) - d->valign = draw_align_fromstr(buf, len); - break; default: return 0; } @@ -187,7 +178,6 @@ widget_imagebox(widget_t *w) w->extents = imagebox_extents; w->data = d = p_new(imagebox_data_t, 1); d->resize = true; - d->valign = AlignTop; return w; }