summaryrefslogtreecommitdiff
path: root/otk/application.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-08 07:33:48 +0000
committerDana Jansens <danakj@orodu.net>2003-02-08 07:33:48 +0000
commit99cd843fc6dc7a7f55b6c90fd1162f233853aad2 (patch)
tree42b25c02cbf984fe29b378e9d0dbfbca1436c87b /otk/application.cc
parentd2df40965bbf042e062b65d6adc12bc158d503eb (diff)
Brand spankin new widgets for otk (Label and Button).
Add a new Size class. Rect, Point, and Size are immutable classes. Size uses *UNSIGNED* ints. This is causing me headaches * a bajillion right now, so we'll see about that.
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();
}