summaryrefslogtreecommitdiff
path: root/otk/widget.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-16 13:50:59 +0000
committerDana Jansens <danakj@orodu.net>2002-11-16 13:50:59 +0000
commit81e1982744e1d692fbe54cc840e93099cbe974af (patch)
tree1d381bce6c55a847b6c2823320ea76f90355a7b5 /otk/widget.cc
parent77342413efd183bd1c0681a57b68acc836022923 (diff)
set the close protocol on the app's main widget
Diffstat (limited to 'otk/widget.cc')
-rw-r--r--otk/widget.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/otk/widget.cc b/otk/widget.cc
index 9ae25cfc..130bafea 100644
--- a/otk/widget.cc
+++ b/otk/widget.cc
@@ -40,6 +40,7 @@ OtkWidget::OtkWidget(OtkApplication *app, Direction direction,
assert(app);
create();
_event_dispatcher->registerHandler(_window, this);
+ app->setMainWidget(this);
}
OtkWidget::OtkWidget(Style *style, Direction direction,