]> Dogcows Code - chaz/openbox/blob - src/main.cc
use otk objects in the ob scripts by importing otk
[chaz/openbox] / src / main.cc
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
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 #ifdef HAVE_STDIO_H
17 # include <stdio.h>
18 #endif // HAVE_STDIO_H
19
20 #include "gettext.h"
21 }
22
23 #include "openbox.hh"
24
25 int main(int argc, char **argv) {
26 // initialize the locale
27 if (!setlocale(LC_ALL, ""))
28 printf("Couldn't set locale from environment.\n");
29 bindtextdomain(PACKAGE, LOCALEDIR);
30 bind_textdomain_codeset(PACKAGE, "UTF-8");
31 textdomain(PACKAGE);
32
33 ob::Openbox openbox(argc, argv);
34 openbox.eventLoop();
35 }
This page took 0.035032 seconds and 4 git commands to generate.