X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fotk_test.cc;h=495b81d59ff687c425f3c7f748d9be517e936b83;hb=70eb03ad50e1a71fd64c8cb1ebabbff311850553;hp=ec352f9f13ebf58d8e4b44cafc325474a1893a65;hpb=a3d036f60ed2333622ee9b61dbddcdc8fbc497c3;p=chaz%2Fopenbox diff --git a/otk/otk_test.cc b/otk/otk_test.cc index ec352f9f..495b81d5 100644 --- a/otk/otk_test.cc +++ b/otk/otk_test.cc @@ -1,15 +1,22 @@ +// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- + +#ifdef HAVE_CONFIG_H +# include "../config.h" +#endif + #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); @@ -31,13 +38,14 @@ int main(int argc, char **argv) { right.setUnfocusTexture(app.getStyle()->getTitleUnfocus()); otk::OtkButton iconb(&left); + iconb.resize(40,20); otk::OtkFocusWidget label(&left); otk::OtkButton maxb(&left); otk::OtkButton closeb(&left); // fixed size iconb.setText("foo"); - iconb.press(); + iconb.press(Button1); // fix width to 60 and let the height be calculated by its parent //label.setHeight(20);