]>
Dogcows Code - chaz/openbox/blob - otk/application.cc
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
4 # include "../config.h"
7 #include "application.hh"
8 #include "eventhandler.hh"
11 #include "property.hh"
12 #include "rendercolor.hh"
24 Application::Application(int argc
, char **argv
)
34 RenderColor::initialize();
35 Property::initialize();
36 _style
= new RenderStyle(DefaultScreen(*_display
), ""); // XXX: get a path!
41 Application::~Application()
44 RenderColor::destroy();
48 void Application::loadStyle(void)
50 // XXX: find the style name as a property
51 std::string style
= "/usr/local/share/openbox/styles/artwiz";
52 //_style->load(style);
55 void Application::run(void)
57 if (_appwidget_count
<= 0) {
58 std::cerr
<< "ERROR: No main widgets exist. You must create and show() " <<
59 "an AppWidget for the Application before calling " <<
60 "Application::run().\n";
64 while (_appwidget_count
> 0) {
66 if (_appwidget_count
<= 0)
68 Timer::dispatchTimers(); // fire pending events
This page took 0.040287 seconds and 4 git commands to generate.