diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-25 22:02:34 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-25 22:02:34 +0000 |
| commit | 2ae2b257d39ea62640c2590f794e4275c6db1cd4 (patch) | |
| tree | f26abe4a0601d263fbc460eddc012c1d674c868b /otk/widget.cc | |
| parent | 3c61812e588fb3c34d0713d7f82ccbf21091f032 (diff) | |
might not compile... ob uses its own widgets now, which subclass only the base otk widget. working on compressing focus events and handling them etc.
Diffstat (limited to 'otk/widget.cc')
| -rw-r--r-- | otk/widget.cc | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/otk/widget.cc b/otk/widget.cc index 07122bc6..e085bc9f 100644 --- a/otk/widget.cc +++ b/otk/widget.cc @@ -187,12 +187,6 @@ void OtkWidget::hide(bool recursive) void OtkWidget::focus(void) { -/* if (! _visible) - return; - - XSetInputFocus(otk::OBDisplay::display, _window, RevertToPointerRoot, - CurrentTime);*/ - _focused = true; OtkWidget::OtkWidgetList::iterator it = _children.begin(), @@ -253,7 +247,7 @@ void OtkWidget::ungrabKeyboard(void) void OtkWidget::render(void) { if (!_texture) return; - + _bg_pixmap = _texture->render(_rect.width(), _rect.height(), _bg_pixmap); if (_bg_pixmap) @@ -392,8 +386,8 @@ void OtkWidget::adjustVert(void) void OtkWidget::update(void) { if (_dirty) { - if (! _unmanaged) - adjust(); + if (!_unmanaged) + adjust(); render(); XClearWindow(OBDisplay::display, _window); } @@ -445,15 +439,6 @@ void OtkWidget::setStyle(Style *style) _style = style; _dirty = true; - // reset textures/colors - if (_focused) { - unfocus(); - focus(); - } else { - focus(); - unfocus(); - } - OtkWidgetList::iterator it, end = _children.end(); for (it = _children.begin(); it != end; ++it) (*it)->setStyle(style); |
