X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Ftheme.c;h=a60fc7b1218d1d3ef24d1cc4e418d98d96fb6f9a;hb=3905872982478e4e0ae05f4ce114a8025a2389ee;hp=28a682b5f22b2a49bfcf431c40128619c23f0f19;hpb=edf29cfe733349e3e61de2b4fd9f2a8c1ebec274;p=chaz%2Fopenbox diff --git a/render/theme.c b/render/theme.c index 28a682b5..a60fc7b1 100644 --- a/render/theme.c +++ b/render/theme.c @@ -1204,9 +1204,10 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name, MAX(theme->padding * 2, ut + ub)); */ theme->title_height = theme->label_height + theme->paddingy * 2; - /* this should match the above title_height given the same font size - for both. */ - theme->menu_title_height = theme->menu_title_font_height + + + RrMargins(theme->a_menu_title, &ul, &ut, &ur, &ub); + theme->menu_title_label_height = theme->menu_title_font_height+ut+ub; + theme->menu_title_height = theme->menu_title_label_height + theme->paddingy * 2; } theme->button_size = theme->label_height - 2;