X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fmain.cc;h=5d878d79c7f0053e6d9425c55240d4e523dd6b0b;hb=5f78b51429b204f89b654d634bb4cc8cb78b95f6;hp=1d6ce0b1e3e4360792517fb3c5f201484726c14c;hpb=700984bd150d98a6876c117c2e1b1b3c72cffce1;p=chaz%2Fopenbox diff --git a/src/main.cc b/src/main.cc index 1d6ce0b1..5d878d79 100644 --- a/src/main.cc +++ b/src/main.cc @@ -13,6 +13,8 @@ extern "C" { # include #endif // HAVE_LOCALE_H +#include + #include "gettext.h" } @@ -22,17 +24,21 @@ using std::string; #include "blackbox.hh" #include "openbox.hh" -int main(int argc, char **argv) { - // initialize the locale - setlocale(LC_ALL, ""); - bindtextdomain(PACKAGE, LOCALEDIR); - textdomain(PACKAGE); - +void main_prog(int argc, char **argv) { ob::Openbox openbox(argc, argv); //ob::Blackbox blackbox(argc, argv, 0); //Blackbox blackbox(argv, session_display, rc_file); openbox.eventLoop(); +} + +int main(int argc, char **argv) { + // initialize the locale + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); - return(0); + // start up guile + //gh_enter(argc, argv, main_prog); + main_prog(argc, argv); }