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
focus
font
font_height
fullscreen
gap
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.
* \luastack
* \lfield font The default font.
* \lfield font_height The default font height.
* \lfield conffile The configuration file which has been loaded.
*/
static int
@ -584,6 +585,9 @@ luaA_awesome_index(lua_State *L)
g_free(font);
}
break;
case A_TK_FONT_HEIGHT:
lua_pushnumber(L, globalconf.font->height);
break;
case A_TK_CONFFILE:
lua_pushstring(L, globalconf.conffile);
break;