+void OtkButton::update(void)
+{
+ if (_dirty) {
+ const BFont ft = getStyle()->getFont();
+ BColor *text_color = (isFocused() ? getStyle()->getTextFocus()
+ : getStyle()->getTextUnfocus());
+ unsigned int bevel = getStyle()->getBevelWidth();
+
+ OtkFocusWidget::resize(ft.measureString(_text) + bevel * 2,
+ ft.height() + bevel * 2);
+ OtkFocusWidget::update();
+
+ ft.drawString(getWindow(), bevel, bevel, *text_color, _text);
+ } else
+ OtkFocusWidget::update();
+
+ _dirty = false;
+}
+
+int OtkButton::buttonPressHandler(const XButtonEvent &e)