X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fapplication.cc;h=94842ca5848dd96617e84a91d6cb20ed54cbfc52;hb=f30b2a8908ad2df8fa56c8d12be2da9192446b7a;hp=efe86d153a21490decf652ab396bc9cdaf765c17;hpb=77882b46dbeb1f626f052e2eb3cb200d44f3e3ff;p=chaz%2Fopenbox diff --git a/otk/application.cc b/otk/application.cc index efe86d15..94842ca5 100644 --- a/otk/application.cc +++ b/otk/application.cc @@ -1,15 +1,13 @@ // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifdef HAVE_CONFIG_H -# include "../config.h" -#endif +#include "config.h" #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 +28,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(); }