From c4ef95612c7d4f1f66c0befd515c753b7d1cfb37 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 13 Aug 2003 09:42:22 +0000 Subject: Button changed to a FbWindow --- src/ArrowButton.cc | 16 ++++++++-------- src/Window.cc | 18 +++++++++--------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/ArrowButton.cc b/src/ArrowButton.cc index 1d3d9fe..96f2142 100644 --- a/src/ArrowButton.cc +++ b/src/ArrowButton.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: ArrowButton.cc,v 1.3 2003/05/17 11:30:59 fluxgen Exp $ +// $Id: ArrowButton.cc,v 1.4 2003/08/13 09:38:09 fluxgen Exp $ #include "ArrowButton.hh" @@ -31,8 +31,8 @@ ArrowButton::ArrowButton(ArrowButton::Type arrow_type, m_arrow_type(arrow_type), m_mouse_handler(0) { - window().setEventMask(ExposureMask | ButtonPressMask | ButtonReleaseMask | - EnterWindowMask | LeaveWindowMask); + setEventMask(ExposureMask | ButtonPressMask | ButtonReleaseMask | + EnterWindowMask | LeaveWindowMask); } ArrowButton::ArrowButton(ArrowButton::Type arrow_type, @@ -43,8 +43,8 @@ ArrowButton::ArrowButton(ArrowButton::Type arrow_type, m_arrow_type(arrow_type), m_mouse_handler(0) { - window().setEventMask(ExposureMask | ButtonPressMask | ButtonReleaseMask | - EnterWindowMask | LeaveWindowMask); + setEventMask(ExposureMask | ButtonPressMask | ButtonReleaseMask | + EnterWindowMask | LeaveWindowMask); } void ArrowButton::clear() { @@ -102,9 +102,9 @@ void ArrowButton::drawArrow() { } if (gc() != 0) { - window().fillPolygon(gc(), - pts, 3, - Convex, CoordModePrevious); + fillPolygon(gc(), + pts, 3, + Convex, CoordModePrevious); } } diff --git a/src/Window.cc b/src/Window.cc index 3bf7731..9363edb 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.216 2003/08/11 17:04:32 fluxgen Exp $ +// $Id: Window.cc,v 1.217 2003/08/13 09:42:22 fluxgen Exp $ #include "Window.hh" @@ -381,8 +381,8 @@ void FluxboxWindow::init() { btn->show(); FbTk::EventManager &evm = *FbTk::EventManager::instance(); // we need motion notify so we mask it - btn->window().setEventMask(ExposureMask | ButtonPressMask | ButtonReleaseMask | - ButtonMotionMask | EnterWindowMask); + btn->setEventMask(ExposureMask | ButtonPressMask | ButtonReleaseMask | + ButtonMotionMask | EnterWindowMask); FbTk::RefCount set_client_cmd(new SetClientCmd(*m_client)); btn->setOnClick(set_client_cmd); @@ -619,9 +619,9 @@ void FluxboxWindow::attachClient(WinClient &client) { frame().addLabelButton(*btn); btn->show(); // we need motion notify so we mask it - btn->window().setEventMask(ExposureMask | ButtonPressMask | - ButtonReleaseMask | ButtonMotionMask | - EnterWindowMask); + btn->setEventMask(ExposureMask | ButtonPressMask | + ButtonReleaseMask | ButtonMotionMask | + EnterWindowMask); FbTk::RefCount @@ -650,9 +650,9 @@ void FluxboxWindow::attachClient(WinClient &client) { btn->show(); FbTk::EventManager &evm = *FbTk::EventManager::instance(); // we need motion notify so we mask it - btn->window().setEventMask(ExposureMask | ButtonPressMask | - ButtonReleaseMask | ButtonMotionMask | - EnterWindowMask); + btn->setEventMask(ExposureMask | ButtonPressMask | + ButtonReleaseMask | ButtonMotionMask | + EnterWindowMask); FbTk::RefCount set_client_cmd(new SetClientCmd(client)); -- cgit v0.11.2