]> Dogcows Code - chaz/openbox/blobdiff - otk/application.cc
support the button pressed resources better
[chaz/openbox] / otk / application.cc
index 886b0033d6db3b3c8c21a26bff83ae3cd96c70d8..dedefaef4b527a4fb9930a377fc229e0b09633a8 100644 (file)
@@ -1,3 +1,9 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
+
+#ifdef HAVE_CONFIG_H
+# include "../config.h"
+#endif
+
 #include "application.hh"
 #include "eventhandler.hh"
 #include "widget.hh"
@@ -48,18 +54,18 @@ void OtkApplication::loadStyle(void)
   std::string style = "/usr/local/share/openbox/styles/artwiz";
   _style_conf->setFile(style);
   if (!_style_conf->load()) {
-    std::cerr << "Unable to load style \"" << style << "\". Aborting.\n";
+    std::cerr << "ERROR: Unable to load style \"" << style << "\".\n";
     ::exit(1);
   }
   _style->load(*_style_conf);
 }
 
-void OtkApplication::exec(void)
+void OtkApplication::run(void)
 {
   if (_appwidget_count <= 0) {
     std::cerr << "ERROR: No main widgets exist. You must create and show() " <<
       "an OtkAppWidget for the OtkApplication before calling " <<
-      "OtkApplication::exec().\n";
+      "OtkApplication::run().\n";
     ::exit(1);
   }
 
This page took 0.022967 seconds and 4 git commands to generate.