X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Ffocuslabel.cc;h=6d034794a3973d20847688ab2f5174a085d9c5bf;hb=674f2609c22d68c5645da22f42ef858182e8b791;hp=24f3ff52d27bbf60bc9a5869a03e80576e60eb96;hpb=033e9843bcec8340c9e657fe0f0519f86075424b;p=chaz%2Fopenbox diff --git a/otk/focuslabel.cc b/otk/focuslabel.cc index 24f3ff52..6d034794 100644 --- a/otk/focuslabel.cc +++ b/otk/focuslabel.cc @@ -13,6 +13,7 @@ namespace otk { FocusLabel::FocusLabel(Widget *parent) : FocusWidget(parent), _text("") { + setStyle(_style); } FocusLabel::~FocusLabel() @@ -29,8 +30,10 @@ void FocusLabel::setStyle(RenderStyle *style) } -void FocusLabel::renderForeground(void) +void FocusLabel::renderForeground() { + otk::Widget::renderForeground(); + const Font *ft = style()->labelFont(); RenderColor *text_color = (isFocused() ? style()->textFocusColor() : style()->textUnfocusColor());