diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-11 05:34:53 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-11 05:34:53 +0000 |
| commit | d8919a9bf837da29c5ca4726c8ebc429127b955b (patch) | |
| tree | 79d4bf6a93e4feea0adc1b6297176955fea37b0b /render/theme.c | |
| parent | 0fedacf700e9f8af32a8fdda91a369b5562ab4ba (diff) | |
guarantee an even height for the label, and thus the titlebar, and thus the buttons. that way an even sized mask in the button will always be centred
Diffstat (limited to 'render/theme.c')
| -rw-r--r-- | render/theme.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/render/theme.c b/render/theme.c index d29b35af..dd9c7653 100644 --- a/render/theme.c +++ b/render/theme.c @@ -1191,6 +1191,7 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name, RrMargins(theme->a_focused_label, &fl, &ft, &fr, &fb); RrMargins(theme->a_unfocused_label, &ul, &ut, &ur, &ub); theme->label_height = theme->win_font_height + MAX(ft + fb, ut + ub); + theme->label_height += theme->label_height % 2; /* this would be nice I think, since padding.width can now be 0, but it breaks frame.c horribly and I don't feel like fixing that |
