]>
Dogcows Code - chaz/openbox/blob - application.cc
ffa33ab800487928b5f0cd2a4fafbe154e043a64
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
4 # include "../config.h"
7 #include "application.hh"
8 #include "eventhandler.hh"
10 #include "property.hh"
11 #include "rendercolor.hh"
12 #include "renderstyle.hh"
24 Application::Application(int argc
, char **argv
)
33 _screen
= DefaultScreen(*_display
);
36 RenderColor::initialize();
37 RenderStyle::initialize();
38 Property::initialize();
43 Application::~Application()
45 RenderStyle::destroy();
46 RenderColor::destroy();
50 void Application::loadStyle(void)
52 // XXX: find the style name as a property
53 std::string style
= "/usr/local/share/openbox/styles/artwiz";
54 //_style->load(style);
57 void Application::run(void)
59 if (_appwidget_count
<= 0) {
60 std::cerr
<< "ERROR: No main widgets exist. You must create and show() " <<
61 "an AppWidget for the Application before calling " <<
62 "Application::run().\n";
66 while (_appwidget_count
> 0) {
68 if (_appwidget_count
<= 0)
70 Timer::dispatchTimers(); // fire pending events
This page took 0.034247 seconds and 3 git commands to generate.