From: Dana Jansens Date: Thu, 28 Aug 2003 19:53:36 +0000 (+0000) Subject: only left-justify menus, remove the menu.frame.justify option X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=5fb0a42b2d0dab028a0941df2677bfac7942716d;p=chaz%2Fopenbox only left-justify menus, remove the menu.frame.justify option --- diff --git a/render/theme.c b/render/theme.c index 2db767e6..65eee180 100644 --- a/render/theme.c +++ b/render/theme.c @@ -26,7 +26,7 @@ static void set_default_appearance(RrAppearance *a); RrTheme* RrThemeNew(const RrInstance *inst, gchar *name) { XrmDatabase db = NULL; - RrJustify winjust, mtitlejust, mjust; + RrJustify winjust, mtitlejust; gchar *str; gchar *font_str; RrTheme *theme; @@ -143,14 +143,6 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name) } theme->mfont_height = RrFontHeight(theme->mfont); - mjust = RR_JUSTIFY_LEFT; - if (read_string(db, "menu.frame.justify", &str)) { - if (!g_ascii_strcasecmp(str, "right")) - mjust = RR_JUSTIFY_RIGHT; - else if (!g_ascii_strcasecmp(str, "center")) - mjust = RR_JUSTIFY_CENTER; - } - /* load direct dimensions */ if (!read_int(db, "menuOverlap", &theme->menu_overlap) || theme->menu_overlap < 0 || theme->menu_overlap > 20) @@ -665,7 +657,8 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name) theme->a_menu_text_hilite->texture[0].type = RR_TEXTURE_TEXT; theme->a_menu_text_item->texture[0].data.text.justify = theme->a_menu_text_disabled->texture[0].data.text.justify = - theme->a_menu_text_hilite->texture[0].data.text.justify = mjust; + theme->a_menu_text_hilite->texture[0].data.text.justify = + RR_JUSTIFY_LEFT; theme->a_menu_text_item->texture[0].data.text.font = theme->a_menu_text_disabled->texture[0].data.text.font = theme->a_menu_text_hilite->texture[0].data.text.font = theme->mfont;