X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Ffocuslabel.cc;h=6d034794a3973d20847688ab2f5174a085d9c5bf;hb=674f2609c22d68c5645da22f42ef858182e8b791;hp=712fce37cb5a9755f6e7d36376dab16499040c4c;hpb=11f59d7925068357e24ca743c23019f671e6a5d7;p=chaz%2Fopenbox diff --git a/otk/focuslabel.cc b/otk/focuslabel.cc index 712fce37..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() @@ -31,6 +32,8 @@ void FocusLabel::setStyle(RenderStyle *style) void FocusLabel::renderForeground() { + otk::Widget::renderForeground(); + const Font *ft = style()->labelFont(); RenderColor *text_color = (isFocused() ? style()->textFocusColor() : style()->textUnfocusColor());