imagebox: remove valign

This is not used anymore in rendering.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-04 14:31:21 +02:00
parent 6cecd54f5d
commit ec5ae3dfb8
3 changed files with 0 additions and 12 deletions

View File

@ -111,7 +111,6 @@ top
transient_for transient_for
type type
urgent urgent
valign
version version
vertical vertical
visible visible

View File

@ -340,7 +340,6 @@ function notify(args)
end end
iconbox.resize = false iconbox.resize = false
iconbox.image = img iconbox.image = img
iconbox.valign = "center"
if hover_timeout then iconbox.mouse_enter = hover_destroy end if hover_timeout then iconbox.mouse_enter = hover_destroy end
end end
end end

View File

@ -28,7 +28,6 @@ typedef struct
/** Imagebox image */ /** Imagebox image */
image_t *image; image_t *image;
color_t bg; color_t bg;
alignment_t valign;
bool resize; bool resize;
} imagebox_data_t; } imagebox_data_t;
@ -95,7 +94,6 @@ imagebox_destructor(widget_t *w)
* \param L The Lua VM state. * \param L The Lua VM state.
* \param token The key token. * \param token The key token.
* \param resize Resize image. * \param resize Resize image.
* \param valign Vertical alignment, top, bottom or center.
* \return The number of elements pushed on stack. * \return The number of elements pushed on stack.
* \luastack * \luastack
* \lfield image The image to display. * \lfield image The image to display.
@ -118,9 +116,6 @@ luaA_imagebox_index(lua_State *L, awesome_token_t token)
case A_TK_RESIZE: case A_TK_RESIZE:
lua_pushboolean(L, d->resize); lua_pushboolean(L, d->resize);
break; break;
case A_TK_VALIGN:
lua_pushstring(L, draw_align_tostr(d->valign));
break;
default: default:
return 0; return 0;
} }
@ -157,10 +152,6 @@ luaA_imagebox_newindex(lua_State *L, awesome_token_t token)
case A_TK_RESIZE: case A_TK_RESIZE:
d->resize = luaA_checkboolean(L, 3); d->resize = luaA_checkboolean(L, 3);
break; break;
case A_TK_VALIGN:
if((buf = luaL_checklstring(L, 3, &len)))
d->valign = draw_align_fromstr(buf, len);
break;
default: default:
return 0; return 0;
} }
@ -187,7 +178,6 @@ widget_imagebox(widget_t *w)
w->extents = imagebox_extents; w->extents = imagebox_extents;
w->data = d = p_new(imagebox_data_t, 1); w->data = d = p_new(imagebox_data_t, 1);
d->resize = true; d->resize = true;
d->valign = AlignTop;
return w; return w;
} }