From 12a95bfdb31595ec53d72adef4e0fd6bf1ccf218 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 16 Nov 2002 14:30:18 +0000 Subject: add an OtkAppWidget which are "root windows", i.e. the managed child of root, to be shown on the display. Exit when all the "root windows" are hidden. Support the WM_DELETE protocol to hide a "root window". --- otk/button.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'otk/button.cc') diff --git a/otk/button.cc b/otk/button.cc index f080c769..1b2ef7ce 100644 --- a/otk/button.cc +++ b/otk/button.cc @@ -51,18 +51,18 @@ void OtkButton::setUnfocusTexture(BTexture *texture) _unpr_unfocus_tx = texture; } -int OtkButton::buttonPressHandler(const XButtonEvent &e) +void OtkButton::buttonPressHandler(const XButtonEvent &e) { press(e.button); update(); - return OtkFocusWidget::buttonPressHandler(e); + OtkFocusWidget::buttonPressHandler(e); } -int OtkButton::buttonReleaseHandler(const XButtonEvent &e) +void OtkButton::buttonReleaseHandler(const XButtonEvent &e) { release(e.button); update(); - return OtkFocusWidget::buttonReleaseHandler(e); + OtkFocusWidget::buttonReleaseHandler(e); } } -- cgit v1.2.3