openbox/src/main.cc

36 lines
717 B
C++
Raw Normal View History

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
extern "C" {
2002-11-16 10:51:47 +00:00
#ifdef HAVE_LOCALE_H
# include <locale.h>
#endif // HAVE_LOCALE_H
#ifdef HAVE_STDIO_H
# include <stdio.h>
#endif // HAVE_STDIO_H
2002-11-01 11:18:32 +00:00
#include "gettext.h"
}
2002-11-01 11:18:32 +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
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
ob::Openbox openbox(argc, argv);
openbox.eventLoop();
2002-04-11 03:20:38 +00:00
}