From c97915f445017d36667a6ad32767fa41d14d23b1 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 13 Jan 2003 08:48:03 +0000 Subject: un-static otk::Display. add an operator* to it. make a global ob::display var. --- otk/widget.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'otk/widget.hh') diff --git a/otk/widget.hh b/otk/widget.hh index 5583faca..7f2d926c 100644 --- a/otk/widget.hh +++ b/otk/widget.hh @@ -83,13 +83,13 @@ public: inline const Color *borderColor(void) const { return _bcolor; } virtual void setBorderColor(const Color *color) { assert(color); _bcolor = color; - XSetWindowBorder(Display::display, _window, color->pixel()); + XSetWindowBorder(**display, _window, color->pixel()); } inline int borderWidth(void) const { return _bwidth; } void setBorderWidth(int width) { _bwidth = width; - XSetWindowBorderWidth(Display::display, _window, width); + XSetWindowBorderWidth(**display, _window, width); } virtual void addChild(Widget *child, bool front = false); @@ -104,7 +104,7 @@ public: inline Cursor cursor(void) const { return _cursor; } void setCursor(Cursor cursor) { _cursor = cursor; - XDefineCursor(Display::display, _window, _cursor); + XDefineCursor(**display, _window, _cursor); } inline int bevelWidth(void) const { return _bevel_width; } -- cgit v1.2.3