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-16 10:51:47 +00:00
|
|
|
#ifdef HAVE_LOCALE_H
|
|
|
|
# include <locale.h>
|
|
|
|
#endif // HAVE_LOCALE_H
|
|
|
|
|
2002-12-23 00:04:32 +00:00
|
|
|
#include <guile/gh.h>
|
|
|
|
|
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
|
|
|
|
2002-12-23 00:04:32 +00:00
|
|
|
void main_prog(int argc, char **argv) {
|
2002-11-11 10:05:06 +00:00
|
|
|
ob::Openbox openbox(argc, argv);
|
|
|
|
//ob::Blackbox blackbox(argc, argv, 0);
|
2002-12-19 23:54:41 +00:00
|
|
|
|
2002-11-03 11:46:05 +00:00
|
|
|
//Blackbox blackbox(argv, session_display, rc_file);
|
2002-11-11 10:05:06 +00:00
|
|
|
openbox.eventLoop();
|
2002-12-23 00:04:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
// initialize the locale
|
|
|
|
setlocale(LC_ALL, "");
|
|
|
|
bindtextdomain(PACKAGE, LOCALEDIR);
|
|
|
|
textdomain(PACKAGE);
|
2002-04-11 03:20:38 +00:00
|
|
|
|
2002-12-23 00:04:32 +00:00
|
|
|
// start up guile
|
|
|
|
//gh_enter(argc, argv, main_prog);
|
|
|
|
main_prog(argc, argv);
|
2002-04-11 03:20:38 +00:00
|
|
|
}
|