luaa: add compatibility for mouse_add
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
207df8e2b0
commit
6ad02f9836
11
luaa.c
11
luaa.c
|
@ -691,6 +691,15 @@ luaA_spawn(lua_State *L)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/** Deprecated function, does nothing.
|
||||
*/
|
||||
static int
|
||||
luaA_mouse_add(lua_State *L)
|
||||
{
|
||||
deprecate(L);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/** Initialize the Lua VM
|
||||
*/
|
||||
void
|
||||
|
@ -721,6 +730,8 @@ luaA_init(void)
|
|||
{ "font", luaA_font },
|
||||
{ "colors", luaA_colors },
|
||||
{ "conffile", luaA_conffile },
|
||||
/* deprecated */
|
||||
{ "mouse_add", luaA_mouse_add },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue