-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)
-{
- assert(app);
- create();
- app->registerHandler(_window, this);
-}
-
-OtkWidget::OtkWidget(Style *style, Direction direction,
- Cursor cursor, int bevel_width)
- : OtkEventHandler(),
+Widget::Widget(EventDispatcher *event_dispatcher, Style *style,
+ Direction direction, Cursor cursor, int bevel_width,
+ bool override_redirect)
+ : EventHandler(),
+ _dirty(false),_focused(false),