From 2ae2b257d39ea62640c2590f794e4275c6db1cd4 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 25 Dec 2002 22:02:34 +0000 Subject: might not compile... ob uses its own widgets now, which subclass only the base otk widget. working on compressing focus events and handling them etc. --- otk/focuslabel.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'otk/focuslabel.cc') 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(); } -- cgit v1.2.3