luaa: add font_height in awesome module
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
e15aab73bf
commit
1ef09fa8e6
|
@ -34,6 +34,7 @@ flex
|
|||
floating
|
||||
focus
|
||||
font
|
||||
font_height
|
||||
fullscreen
|
||||
gap
|
||||
geometry
|
||||
|
|
4
luaa.c
4
luaa.c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue