From de4ebf907e956f0650849b03f06d1e044161fd97 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 5 Nov 2008 11:16:09 +0100 Subject: [PATCH] widget: unknown type are no fatal anymore Signed-off-by: Julien Danjou --- widget.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/widget.c b/widget.c index ebfd8660c..7f4f2d968 100644 --- a/widget.c +++ b/widget.c @@ -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;