From 99cd843fc6dc7a7f55b6c90fd1162f233853aad2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 8 Feb 2003 07:33:48 +0000 Subject: 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. --- otk/application.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'otk/application.cc') 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(); } -- cgit v1.2.3