+ _event_dispatcher->registerHandler(_window, this);
+}
+
+OtkWidget::OtkWidget(OtkApplication *app, Direction direction,
+ Cursor cursor, int bevel_width)
+ : OtkEventHandler(),
+ _parent(0), _style(app->getStyle()), _direction(direction), _cursor(cursor),
+ _bevel_width(bevel_width), _ignore_config(0), _visible(false),
+ _focused(false), _grabbed_mouse(false), _grabbed_keyboard(false),
+ _stretchable_vert(false), _stretchable_horz(false), _texture(0),
+ _bg_pixmap(0), _bg_pixel(0), _screen(app->getStyle()->getScreen()),
+ _fixed_width(false), _fixed_height(false), _dirty(false),
+ _event_dispatcher(app)
+{
+ assert(app);
+ create();
+ _event_dispatcher->registerHandler(_window, this);