X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Fwidget.hh;h=249a4e281262d1c7c0b56038436e4f8447807509;hb=4e0b5fdef451c605f563d137b024134a68c6d6de;hp=2e58cc9928459726876bb984822dd56ccbabd117;hpb=f890d31d6bf41db5c565e4f1b25132a6df1bd044;p=chaz%2Fopenbox diff --git a/otk/widget.hh b/otk/widget.hh index 2e58cc99..249a4e28 100644 --- a/otk/widget.hh +++ b/otk/widget.hh @@ -88,6 +88,10 @@ public: void setStretchableVert(bool s_vert = true) { _stretchable_vert = s_vert; } inline Cursor getCursor(void) const { return _cursor; } + void setCursor(Cursor cursor) { + _cursor = cursor; + XDefineCursor(OBDisplay::display, _window, _cursor); + } inline int getBevelWidth(void) const { return _bevel_width; } void setBevelWidth(int bevel_width) @@ -97,7 +101,7 @@ public: void setDirection(Direction dir) { _direction = dir; } inline Style *getStyle(void) const { return _style; } - virtual void setStyle(Style *style) { assert(style); _style = style; } + virtual void setStyle(Style *style); inline OtkEventDispatcher *getEventDispatcher(void) { return _event_dispatcher; }