2002-05-25 00:29:44 +00:00
|
|
|
// -*- mode: C++; indent-tabs-mode: nil; -*-
|
2002-04-11 03:20:38 +00:00
|
|
|
|
2002-11-05 05:56:44 +00:00
|
|
|
/*! @file main.cc
|
|
|
|
@brief Main entry point for the application
|
|
|
|
*/
|
|
|
|
|
2002-04-11 03:20:38 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "../config.h"
|
|
|
|
#endif // HAVE_CONFIG_H
|
|
|
|
|
2002-05-25 00:29:44 +00:00
|
|
|
extern "C" {
|
2002-11-01 11:18:32 +00:00
|
|
|
#include "gettext.h"
|
2002-11-03 11:46:05 +00:00
|
|
|
}
|
2002-11-01 11:18:32 +00:00
|
|
|
|
2002-05-25 00:29:44 +00:00
|
|
|
#include <string>
|
|
|
|
using std::string;
|
2002-04-11 03:20:38 +00:00
|
|
|
|
2002-05-25 00:29:44 +00:00
|
|
|
#include "blackbox.hh"
|
2002-11-03 11:46:05 +00:00
|
|
|
#include "openbox.hh"
|
2002-04-11 03:20:38 +00:00
|
|
|
|
|
|
|
int main(int argc, char **argv) {
|
2002-11-03 05:56:15 +00:00
|
|
|
// initialize the locale
|
|
|
|
setlocale(LC_ALL, "");
|
|
|
|
bindtextdomain(PACKAGE, LOCALEDIR);
|
|
|
|
textdomain(PACKAGE);
|
2002-05-25 02:24:30 +00:00
|
|
|
|
2002-11-03 11:46:05 +00:00
|
|
|
//ob::Openbox openbox(argc, argv);
|
|
|
|
ob::Blackbox blackbox(argc, argv, 0);
|
|
|
|
|
|
|
|
//Blackbox blackbox(argv, session_display, rc_file);
|
2002-05-25 00:29:44 +00:00
|
|
|
blackbox.eventLoop();
|
2002-04-11 03:20:38 +00:00
|
|
|
|
|
|
|
return(0);
|
|
|
|
}
|