]>
Dogcows Code - chaz/openbox/blob - otk/application.cc
c5889e8d1a817f7420a62c9a0fb7d84d00d42b13
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
5 #include "application.hh"
6 #include "eventhandler.hh"
9 #include "rendercolor.hh"
10 #include "renderstyle.hh"
18 extern void initialize();
19 extern void destroy();
21 Application::Application(int argc
, char **argv
)
31 _screen
= DefaultScreen(**display
);
36 Application::~Application()
41 void Application::loadStyle(void)
43 // XXX: find the style name as a property
44 std::string style
= "/usr/local/share/openbox/styles/artwiz";
45 //_style->load(style);
48 void Application::run(void)
50 if (_appwidget_count
<= 0) {
51 std::cerr
<< "ERROR: No main widgets exist. You must create and show() " <<
52 "an AppWidget for the Application before calling " <<
53 "Application::run().\n";
57 while (_appwidget_count
> 0) {
59 if (_appwidget_count
> 0)
60 Timer::dispatchTimers(); // fire pending events
This page took 0.040435 seconds and 4 git commands to generate.