X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fbutton.cc;h=774aa11bf87eeb10e03a9a332604074297b21737;hb=e451c08ac5a103362adbece9b8a11a16ade739c1;hp=1e128784f91aa4811a2efb3b3956cbce03c58e87;hpb=f51f1c775f3f09cf184ead323d111985c888d52e;p=chaz%2Fopenbox diff --git a/otk/button.cc b/otk/button.cc index 1e128784..774aa11b 100644 --- a/otk/button.cc +++ b/otk/button.cc @@ -1,8 +1,6 @@ // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifdef HAVE_CONFIG_H -# include "../config.h" -#endif +#include "config.h" #include "button.hh" @@ -12,7 +10,6 @@ Button::Button(Widget *parent) : Label(parent), _pressed(false) { - setHighlighted(false); setHorizontalJustify(RenderStyle::CenterJustify); setVerticalJustify(RenderStyle::CenterJustify); styleChanged(*RenderStyle::style(screen())); @@ -70,7 +67,7 @@ void Button::styleChanged(const RenderStyle &style) _texture = style.buttonUnpressUnfocusBackground(); _forecolor = style.buttonUnfocusColor(); } - Widget::styleChanged(style); + refresh(); } }