luaobject: emit signals on class too

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-10-09 21:36:41 +02:00 committed by Uli Schlachter
parent bb54142746
commit 3fbb5f1535
1 changed files with 4 additions and 1 deletions

View File

@ -251,7 +251,10 @@ luaA_object_emit_signal(lua_State *L, int oud,
luaA_dofunction(L, nargs + 1, 0); 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 int