graph: deprecate in favor of awful widget
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
348a4dca19
commit
1e6d4747be
|
@ -427,6 +427,7 @@ luaA_graph_plot_data_add(lua_State *L)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Graph widget.
|
/** Graph widget.
|
||||||
|
* DEPRECATED, see awful.widget.graph.
|
||||||
* \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 stack.
|
* \return The number of elements pushed on stack.
|
||||||
|
@ -588,6 +589,7 @@ graph_destructor(widget_t *widget)
|
||||||
widget_t *
|
widget_t *
|
||||||
widget_graph(widget_t *w)
|
widget_graph(widget_t *w)
|
||||||
{
|
{
|
||||||
|
luaA_deprecate(globalconf.L, "awful.widget.graph");
|
||||||
w->draw = graph_draw;
|
w->draw = graph_draw;
|
||||||
w->index = luaA_graph_index;
|
w->index = luaA_graph_index;
|
||||||
w->newindex = luaA_graph_newindex;
|
w->newindex = luaA_graph_newindex;
|
||||||
|
|
Loading…
Reference in New Issue