luaobject: remove prefix##_push_item()
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
1cc50b8a29
commit
5dbae0e34f
|
@ -167,15 +167,6 @@ int luaA_object_emit_signal_simple(lua_State *);
|
|||
} \
|
||||
\
|
||||
static inline int \
|
||||
prefix##_push_item(lua_State *L, type *item, void *ref) \
|
||||
{ \
|
||||
luaA_object_push(L, item); \
|
||||
luaA_object_push_item(L, -1, ref); \
|
||||
lua_remove(L, -2); \
|
||||
return 1; \
|
||||
} \
|
||||
\
|
||||
static inline int \
|
||||
luaA_##prefix##_tostring(lua_State *L) \
|
||||
{ \
|
||||
lua_pushfstring(L, lua_type ": %p", luaL_checkudata(L, 1, lua_type)); \
|
||||
|
|
8
event.c
8
event.c
|
@ -440,7 +440,9 @@ event_handle_leavenotify(void *data __attribute__ ((unused)),
|
|||
|
||||
if(wibox->mouse_leave)
|
||||
{
|
||||
wibox_push_item(globalconf.L, wibox, wibox->mouse_leave);
|
||||
luaA_object_push(globalconf.L, wibox);
|
||||
luaA_object_push_item(globalconf.L, -1, wibox->mouse_leave);
|
||||
lua_remove(globalconf.L, -2);
|
||||
luaA_dofunction(globalconf.L, 0, 0);
|
||||
}
|
||||
}
|
||||
|
@ -475,7 +477,9 @@ event_handle_enternotify(void *data __attribute__ ((unused)),
|
|||
|
||||
if(wibox->mouse_enter)
|
||||
{
|
||||
wibox_push_item(globalconf.L, wibox, wibox->mouse_enter);
|
||||
luaA_object_push(globalconf.L, wibox);
|
||||
luaA_object_push_item(globalconf.L, -1, wibox->mouse_enter);
|
||||
lua_remove(globalconf.L, -2);
|
||||
luaA_dofunction(globalconf.L, 0, 0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue