luaa: add font_height in awesome module

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-05-05 15:43:04 +02:00
parent e15aab73bf
commit 1ef09fa8e6
2 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,7 @@ flex
floating floating
focus focus
font font
font_height
fullscreen fullscreen
gap gap
geometry geometry

4
luaa.c
View File

@ -564,6 +564,7 @@ luaA_isloop(lua_State *L, int idx)
* \return The number of elements pushed on stack. * \return The number of elements pushed on stack.
* \luastack * \luastack
* \lfield font The default font. * \lfield font The default font.
* \lfield font_height The default font height.
* \lfield conffile The configuration file which has been loaded. * \lfield conffile The configuration file which has been loaded.
*/ */
static int static int
@ -584,6 +585,9 @@ luaA_awesome_index(lua_State *L)
g_free(font); g_free(font);
} }
break; break;
case A_TK_FONT_HEIGHT:
lua_pushnumber(L, globalconf.font->height);
break;
case A_TK_CONFFILE: case A_TK_CONFFILE:
lua_pushstring(L, globalconf.conffile); lua_pushstring(L, globalconf.conffile);
break; break;