summaryrefslogtreecommitdiff
path: root/otk/widget.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-04 13:14:11 +0000
committerDana Jansens <danakj@orodu.net>2002-12-04 13:14:11 +0000
commitc187fbdf60956f3bf6392bfd132ba960e43ef4ec (patch)
tree148051657fc524432525a0ec8ff6da5a42e51490 /otk/widget.cc
parent301adc8bc20dff10093f3c0df44e30acbbddab67 (diff)
move event handling into basewidget again <FLINCH>
add the basewidget class
Diffstat (limited to 'otk/widget.cc')
-rw-r--r--otk/widget.cc22
1 files changed, 0 insertions, 22 deletions
diff --git a/otk/widget.cc b/otk/widget.cc
index a859809f..1da7dd90 100644
--- a/otk/widget.cc
+++ b/otk/widget.cc
@@ -12,7 +12,6 @@ namespace otk {
OtkWidget::OtkWidget(OtkWidget *parent, Direction direction)
: OtkBaseWidget(parent),
- OtkEventHandler(),
_direction(direction), _stretchable_vert(false), _stretchable_horz(false),
_event_dispatcher(parent->getEventDispatcher())
{
@@ -23,7 +22,6 @@ OtkWidget::OtkWidget(OtkWidget *parent, Direction direction)
OtkWidget::OtkWidget(OtkEventDispatcher *event_dispatcher, Style *style,
Direction direction, Cursor cursor, int bevel_width)
: OtkBaseWidget(style, cursor, bevel_width),
- OtkEventHandler(),
_direction(direction), _stretchable_vert(false), _stretchable_horz(false),
_event_dispatcher(event_dispatcher)
{
@@ -186,25 +184,5 @@ void OtkWidget::setEventDispatcher(OtkEventDispatcher *disp)
_event_dispatcher->registerHandler(_window, this);
}
-void OtkWidget::exposeHandler(const XExposeEvent &e)
-{
- OtkEventHandler::exposeHandler(e);
- _dirty = true;
- update();
-}
-
-void OtkWidget::configureHandler(const XConfigureEvent &e)
-{
- OtkEventHandler::configureHandler(e);
- if (_ignore_config) {
- _ignore_config--;
- } else {
- if (!(e.width == _rect.width() && e.height == _rect.height())) {
- _dirty = true;
- _rect.setSize(e.width, e.height);
- }
- update();
- }
-}
}