widget: unknown type are no fatal anymore
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a9f3e379f4
commit
de4ebf907e
5
widget.c
5
widget.c
|
@ -380,7 +380,10 @@ luaA_widget_new(lua_State *L)
|
||||||
if((wc = name_func_lookup(type, WidgetList)))
|
if((wc = name_func_lookup(type, WidgetList)))
|
||||||
w = wc(align);
|
w = wc(align);
|
||||||
else
|
else
|
||||||
luaL_error(L, "unkown widget type: %s", type);
|
{
|
||||||
|
luaA_warn(L, "unkown widget type: %s", type);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
w->type = wc;
|
w->type = wc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue