From 3fbb5f1535dfd0d49d73bc8c46f6b05d730094c6 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 9 Oct 2009 21:36:41 +0200 Subject: [PATCH] luaobject: emit signals on class too Signed-off-by: Julien Danjou --- common/luaobject.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/luaobject.c b/common/luaobject.c index 0af0ad17..4f43357e 100644 --- a/common/luaobject.c +++ b/common/luaobject.c @@ -251,7 +251,10 @@ luaA_object_emit_signal(lua_State *L, int oud, luaA_dofunction(L, nargs + 1, 0); } } - lua_pop(L, nargs); + /* Then emit signal on the class */ + lua_pushvalue(L, oud); + lua_insert(L, - nargs - 1); + luaA_class_emit_signal(L, luaA_class_get(L, - nargs - 1), name, nargs + 1); } int