summaryrefslogtreecommitdiff
path: root/otk/button.cc
diff options
context:
space:
mode:
Diffstat (limited to 'otk/button.cc')
-rw-r--r--otk/button.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/otk/button.cc b/otk/button.cc
index 1e8a4f03..410f0083 100644
--- a/otk/button.cc
+++ b/otk/button.cc
@@ -57,7 +57,6 @@ void OtkButton::update(void)
OtkFocusWidget::resize(ft.measureString(_text) + bevel * 2,
ft.height() + bevel * 2);
-
OtkFocusWidget::update();
ft.drawString(getWindow(), bevel, bevel, *text_color, _text);
@@ -73,4 +72,10 @@ bool OtkButton::expose(const XExposeEvent &e)
return OtkFocusWidget::expose(e);
}
+bool OtkButton::configure(const XConfigureEvent &e)
+{
+ _dirty = true;
+ return OtkFocusWidget::configure(e);
+}
+
}