widget: unknown type are no fatal anymore

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-11-05 11:16:09 +01:00
parent a9f3e379f4
commit de4ebf907e
1 changed files with 4 additions and 1 deletions

View File

@ -380,7 +380,10 @@ luaA_widget_new(lua_State *L)
if((wc = name_func_lookup(type, WidgetList)))
w = wc(align);
else
luaL_error(L, "unkown widget type: %s", type);
{
luaA_warn(L, "unkown widget type: %s", type);
return 0;
}
w->type = wc;