1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 04:32:55 +00:00

Fix `lua hooks are not being called' (sf.net #3501425)

This commit is contained in:
Pavel Labath 2012-06-03 16:52:16 +02:00
parent 11e32706d4
commit 1e5eba211d

View File

@ -460,26 +460,26 @@ void llua_set_number(const char *key, double value)
void llua_startup_hook(void)
{
if (!lua_L || !lua_startup_hook.get(*state).empty()) return;
if (!lua_L || lua_startup_hook.get(*state).empty()) return;
llua_do_call(lua_startup_hook.get(*state).c_str(), 0);
}
void llua_shutdown_hook(void)
{
if (!lua_L || !lua_shutdown_hook.get(*state).empty()) return;
if (!lua_L || lua_shutdown_hook.get(*state).empty()) return;
llua_do_call(lua_shutdown_hook.get(*state).c_str(), 0);
}
#ifdef BUILD_X11
void llua_draw_pre_hook(void)
{
if (!lua_L || !lua_draw_hook_pre.get(*state).empty()) return;
if (!lua_L || lua_draw_hook_pre.get(*state).empty()) return;
llua_do_call(lua_draw_hook_pre.get(*state).c_str(), 0);
}
void llua_draw_post_hook(void)
{
if (!lua_L || !lua_draw_hook_post.get(*state).empty()) return;
if (!lua_L || lua_draw_hook_post.get(*state).empty()) return;
llua_do_call(lua_draw_hook_post.get(*state).c_str(), 0);
}