titlebar: add position in __index

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-08 17:10:29 +02:00
parent eb2eb9c30b
commit bfad5a0d0d
1 changed files with 4 additions and 0 deletions

View File

@ -476,6 +476,7 @@ luaA_titlebar_newindex(lua_State *L)
* \lfield border_color Border color. * \lfield border_color Border color.
* \lfield fg Foreground color. * \lfield fg Foreground color.
* \lfield bg Background color. * \lfield bg Background color.
* \lfield position Position.
*/ */
static int static int
luaA_titlebar_index(lua_State *L) luaA_titlebar_index(lua_State *L)
@ -520,6 +521,9 @@ luaA_titlebar_index(lua_State *L)
lua_rawseti(L, -2, ++i); lua_rawseti(L, -2, ++i);
} }
break; break;
case A_TK_POSITION:
lua_pushstring(L, position_tostr((*titlebar)->position));
break;
default: default:
return 0; return 0;
} }