progressbar: deprecate old widget
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
90516497a3
commit
9e7054f3c0
|
@ -518,6 +518,7 @@ luaA_progressbar_bar_data_add(lua_State *L)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Progressbar widget.
|
/** Progressbar widget.
|
||||||
|
* DEPRECATED, see awful.widget.progressbar.
|
||||||
* \param L The Lua VM state.
|
* \param L The Lua VM state.
|
||||||
* \param token The key token.
|
* \param token The key token.
|
||||||
* \return The number of elements pushed on the stack.
|
* \return The number of elements pushed on the stack.
|
||||||
|
@ -643,6 +644,7 @@ progressbar_destructor(widget_t *widget)
|
||||||
widget_t *
|
widget_t *
|
||||||
widget_progressbar(widget_t *w)
|
widget_progressbar(widget_t *w)
|
||||||
{
|
{
|
||||||
|
luaA_deprecate(globalconf.L, "awful.widget.progressbar");
|
||||||
w->draw = progressbar_draw;
|
w->draw = progressbar_draw;
|
||||||
w->index = luaA_progressbar_index;
|
w->index = luaA_progressbar_index;
|
||||||
w->newindex = luaA_progressbar_newindex;
|
w->newindex = luaA_progressbar_newindex;
|
||||||
|
|
Loading…
Reference in New Issue