X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fapplication.cc;h=dedefaef4b527a4fb9930a377fc229e0b09633a8;hb=bf49e7642027f576716e5742544c282f4396f9ef;hp=8e4d93b3641fdcaef3273e0890002a4302234789;hpb=638d4e6f1902c92e73b04246f349318236378437;p=chaz%2Fopenbox diff --git a/otk/application.cc b/otk/application.cc index 8e4d93b3..dedefaef 100644 --- a/otk/application.cc +++ b/otk/application.cc @@ -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" @@ -54,12 +60,12 @@ void OtkApplication::loadStyle(void) _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); }