2003-01-11 19:42:43 +00:00
|
|
|
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
|
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
|
|
|
|
|
2003-01-13 02:42:14 +00:00
|
|
|
#ifdef HAVE_STDIO_H
|
|
|
|
# include <stdio.h>
|
|
|
|
#endif // HAVE_STDIO_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-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
|
|
|
int main(int argc, char **argv) {
|
|
|
|
// initialize the locale
|
2003-01-13 02:42:14 +00:00
|
|
|
if (!setlocale(LC_ALL, ""))
|
|
|
|
printf("Couldn't set locale from environment.\n");
|
2002-12-23 00:04:32 +00:00
|
|
|
bindtextdomain(PACKAGE, LOCALEDIR);
|
2003-01-12 23:04:21 +00:00
|
|
|
bind_textdomain_codeset(PACKAGE, "UTF-8");
|
2002-12-23 00:04:32 +00:00
|
|
|
textdomain(PACKAGE);
|
2002-04-11 03:20:38 +00:00
|
|
|
|
2002-12-25 22:02:34 +00:00
|
|
|
ob::Openbox openbox(argc, argv);
|
|
|
|
openbox.eventLoop();
|
2002-04-11 03:20:38 +00:00
|
|
|
}
|