X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Ffocuslabel.cc;h=a5c851273adb49c6ca171bc3d0bdeaf0fc4232cb;hb=2b2f81b93c89c2a2d6abc3b12dee66b8e2a0452d;hp=136eb742c08c9498edf5c46d75e8907f1025b719;hpb=06de24ec6666578759eff2b348e50f5e8e20f3bd;p=chaz%2Fopenbox diff --git a/otk/focuslabel.cc b/otk/focuslabel.cc index 136eb742..a5c85127 100644 --- a/otk/focuslabel.cc +++ b/otk/focuslabel.cc @@ -36,7 +36,7 @@ void OtkFocusLabel::setStyle(Style *style) void OtkFocusLabel::update(void) { if (_dirty) { - const BFont &ft = style()->getFont(); + const BFont *ft = style()->getFont(); BColor *text_color = (isFocused() ? style()->getTextFocus() : style()->getTextUnfocus()); unsigned int sidemargin = style()->getBevelWidth() * 2; @@ -54,7 +54,7 @@ void OtkFocusLabel::update(void) do { t.resize(text_len); - length = ft.measureString(t); + length = ft->measureString(t); } while (length > max_length && text_len-- > 0); // justify the text @@ -72,7 +72,7 @@ void OtkFocusLabel::update(void) OtkFocusWidget::update(); - ft.drawString(_xftdraw, x, 0, *text_color, t); + ft->drawString(_xftdraw, x, 0, *text_color, t); } else OtkFocusWidget::update(); }