From 12a95bfdb31595ec53d72adef4e0fd6bf1ccf218 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 16 Nov 2002 14:30:18 +0000 Subject: add an OtkAppWidget which are "root windows", i.e. the managed child of root, to be shown on the display. Exit when all the "root windows" are hidden. Support the WM_DELETE protocol to hide a "root window". --- otk/otk_test.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'otk/otk_test.cc') diff --git a/otk/otk_test.cc b/otk/otk_test.cc index 987563ad..39baa7f6 100644 --- a/otk/otk_test.cc +++ b/otk/otk_test.cc @@ -1,15 +1,16 @@ #include "application.hh" #include "focuswidget.hh" +#include "appwidget.hh" #include "button.hh" int main(int argc, char **argv) { otk::OtkApplication app(argc, argv); - otk::OtkFocusWidget foo(&app); + otk::OtkAppWidget foo(&app); foo.resize(600, 500); foo.setTexture(app.getStyle()->getTitleFocus()); - foo.setUnfocusTexture(app.getStyle()->getTitleUnfocus()); +// foo.setUnfocusTexture(app.getStyle()->getTitleUnfocus()); foo.setBevelWidth(2); foo.setDirection(otk::OtkWidget::Horizontal); -- cgit v1.2.3