From dd3decc3190713a8493156bd841992168037661d Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 11 Dec 2002 00:50:26 +0000 Subject: fuck you basewidget --- otk/focuswidget.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'otk/focuswidget.cc') diff --git a/otk/focuswidget.cc b/otk/focuswidget.cc index e956561e..22a6100b 100644 --- a/otk/focuswidget.cc +++ b/otk/focuswidget.cc @@ -29,7 +29,11 @@ void OtkFocusWidget::focus(void) OtkWidget::setTexture(_focus_texture); OtkWidget::update(); - OtkBaseWidgetList::iterator it = _children.begin(), end = _children.end(); + OtkWidget::OtkWidgetList children = OtkWidget::getChildren(); + + OtkWidget::OtkWidgetList::iterator it = children.begin(), + end = children.end(); + OtkFocusWidget *tmp = 0; for (; it != end; ++it) { tmp = dynamic_cast(*it); @@ -46,7 +50,11 @@ void OtkFocusWidget::unfocus(void) OtkWidget::setTexture(_unfocus_texture); OtkWidget::update(); - OtkBaseWidgetList::iterator it = _children.begin(), end = _children.end(); + OtkWidget::OtkWidgetList children = OtkWidget::getChildren(); + + OtkWidget::OtkWidgetList::iterator it = children.begin(), + end = children.end(); + OtkFocusWidget *tmp = 0; for (; it != end; ++it) { tmp = dynamic_cast(*it); -- cgit v1.2.3