X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=otk%2Ffocuswidget.cc;h=e956561e2224fc94a78eb38f5754e23b86dbfe78;hb=301adc8bc20dff10093f3c0df44e30acbbddab67;hp=ffbaeb7e09bd995b4596eec63b99500bd06f18e4;hpb=a3d036f60ed2333622ee9b61dbddcdc8fbc497c3;p=chaz%2Fopenbox diff --git a/otk/focuswidget.cc b/otk/focuswidget.cc index ffbaeb7e..e956561e 100644 --- a/otk/focuswidget.cc +++ b/otk/focuswidget.cc @@ -1,3 +1,9 @@ +// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- + +#ifdef HAVE_CONFIG_H +# include "../config.h" +#endif + #include "focuswidget.hh" namespace otk { @@ -8,20 +14,6 @@ OtkFocusWidget::OtkFocusWidget(OtkWidget *parent, Direction direction) _focus_texture = parent->getTexture(); } -OtkFocusWidget::OtkFocusWidget(OtkApplication *app, Direction direction, - Cursor cursor, int bevel_width) - : OtkWidget(app, direction, cursor, bevel_width), - _unfocus_texture(0), _focused(true) -{ -} - -OtkFocusWidget::OtkFocusWidget(Style *style, Direction direction, - Cursor cursor, int bevel_width) - : OtkWidget(style, direction, cursor, bevel_width), - _unfocus_texture(0), _focused(true) -{ -} - OtkFocusWidget::~OtkFocusWidget() { } @@ -37,11 +29,7 @@ void OtkFocusWidget::focus(void) OtkWidget::setTexture(_focus_texture); OtkWidget::update(); - OtkWidget::OtkWidgetList children = OtkWidget::getChildren(); - - OtkWidget::OtkWidgetList::iterator it = children.begin(), - end = children.end(); - + OtkBaseWidgetList::iterator it = _children.begin(), end = _children.end(); OtkFocusWidget *tmp = 0; for (; it != end; ++it) { tmp = dynamic_cast(*it); @@ -58,11 +46,7 @@ void OtkFocusWidget::unfocus(void) OtkWidget::setTexture(_unfocus_texture); OtkWidget::update(); - OtkWidget::OtkWidgetList children = OtkWidget::getChildren(); - - OtkWidget::OtkWidgetList::iterator it = children.begin(), - end = children.end(); - + OtkBaseWidgetList::iterator it = _children.begin(), end = _children.end(); OtkFocusWidget *tmp = 0; for (; it != end; ++it) { tmp = dynamic_cast(*it);