diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-14 23:05:59 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-14 23:05:59 +0000 |
| commit | 7fe3301e7ea905a8a76d54c22751f3d8a346e28b (patch) | |
| tree | 8b81be235862807c55393d35eb5830779afeecb1 /otk/application.cc | |
| parent | 299dc47a6b6379bba77fc489ef6825dcfe18faf5 (diff) | |
Add the "obsetroot" tool. Use it to set the root background.
Diffstat (limited to 'otk/application.cc')
| -rw-r--r-- | otk/application.cc | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/otk/application.cc b/otk/application.cc index 94842ca5..afe06f80 100644 --- a/otk/application.cc +++ b/otk/application.cc @@ -8,41 +8,34 @@ #include "property.hh" #include "rendercolor.hh" #include "renderstyle.hh" +#include "display.hh" -extern "C" { -#ifdef HAVE_STDLIB_H -# include <stdlib.h> -#endif -} - +#include <cstdlib> #include <iostream> namespace otk { +extern void initialize(); +extern void destroy(); + Application::Application(int argc, char **argv) : EventDispatcher(), - _display(), _dockable(false), _appwidget_count(0) { (void)argc; (void)argv; - _screen = DefaultScreen(*_display); + otk::initialize(); + + _screen = DefaultScreen(**display); - Timer::initialize(); - RenderColor::initialize(); - RenderStyle::initialize(); - Property::initialize(); - loadStyle(); } Application::~Application() { - RenderStyle::destroy(); - RenderColor::destroy(); - Timer::destroy(); + otk::destroy(); } void Application::loadStyle(void) |
