]> Dogcows Code - chaz/openbox/blob - src/main.cc
new code for bindings/callbacks. much sexier. now passes python classes back to the...
[chaz/openbox] / src / main.cc
1 // -*- mode: C++; indent-tabs-mode: nil; -*-
2
3 /*! @file main.cc
4 @brief Main entry point for the application
5 */
6
7 #ifdef HAVE_CONFIG_H
8 # include "../config.h"
9 #endif // HAVE_CONFIG_H
10
11 extern "C" {
12 #ifdef HAVE_LOCALE_H
13 # include <locale.h>
14 #endif // HAVE_LOCALE_H
15
16 #include "gettext.h"
17 }
18
19 #include <string>
20 using std::string;
21
22 #include "openbox.hh"
23
24 int main(int argc, char **argv) {
25 // initialize the locale
26 setlocale(LC_ALL, "");
27 bindtextdomain(PACKAGE, LOCALEDIR);
28 textdomain(PACKAGE);
29
30 ob::Openbox openbox(argc, argv);
31 openbox.eventLoop();
32 }
This page took 0.038362 seconds and 4 git commands to generate.