diff options
Diffstat (limited to 'otk/focuswidget.cc')
| -rw-r--r-- | otk/focuswidget.cc | 12 |
1 files changed, 10 insertions, 2 deletions
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<OtkFocusWidget*>(*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<OtkFocusWidget*>(*it); |
