summaryrefslogtreecommitdiff
path: root/otk/application.cc
diff options
context:
space:
mode:
Diffstat (limited to 'otk/application.cc')
-rw-r--r--otk/application.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/otk/application.cc b/otk/application.cc
index efe86d15..ffa33ab8 100644
--- a/otk/application.cc
+++ b/otk/application.cc
@@ -6,10 +6,10 @@
#include "application.hh"
#include "eventhandler.hh"
-#include "widget.hh"
#include "timer.hh"
#include "property.hh"
#include "rendercolor.hh"
+#include "renderstyle.hh"
extern "C" {
#ifdef HAVE_STDLIB_H
@@ -30,17 +30,19 @@ Application::Application(int argc, char **argv)
(void)argc;
(void)argv;
+ _screen = DefaultScreen(*_display);
+
Timer::initialize();
RenderColor::initialize();
+ RenderStyle::initialize();
Property::initialize();
- _style = new RenderStyle(DefaultScreen(*_display), ""); // XXX: get a path!
loadStyle();
}
Application::~Application()
{
- delete _style;
+ RenderStyle::destroy();
RenderColor::destroy();
Timer::destroy();
}