From 8bba0ba76a07107ba49fa3b25434450c09a96866 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 23 May 2008 16:39:35 +0200 Subject: [PATCH] [titlebar] Fix inconsitent API with text* Signed-off-by: Julien Danjou --- titlebar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/titlebar.c b/titlebar.c index de2084a6..93a146f6 100644 --- a/titlebar.c +++ b/titlebar.c @@ -412,9 +412,9 @@ luaA_titlebar_new(lua_State *L) *tb = p_new(titlebar_t, 1); objpos = lua_gettop(L); - (*tb)->text_normal = a_strdup(luaA_getopt_string(L, 1, "normal", "")); - (*tb)->text_focus = a_strdup(luaA_getopt_string(L, 1, "focus", "<title/>")); - (*tb)->text_urgent = a_strdup(luaA_getopt_string(L, 1, "urgent", "<title/>")); + (*tb)->text_normal = a_strdup(luaA_getopt_string(L, 1, "text_normal", "<title/>")); + (*tb)->text_focus = a_strdup(luaA_getopt_string(L, 1, "text_focus", "<title/>")); + (*tb)->text_urgent = a_strdup(luaA_getopt_string(L, 1, "text_urgent", "<title/>")); (*tb)->align = draw_align_get_from_str(luaA_getopt_string(L, 1, "align", "left"));