]> icculus.org git repositories - dana/openbox.git/blob - src/main.cc
include the right .h
[dana/openbox.git] / 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 "blackbox.hh"
23 #include "openbox.hh"
24
25 int main(int argc, char **argv) {
26   // initialize the locale
27   setlocale(LC_ALL, "");
28   bindtextdomain(PACKAGE, LOCALEDIR);
29   textdomain(PACKAGE);
30
31   ob::Openbox openbox(argc, argv);
32   //ob::Blackbox blackbox(argc, argv, 0);
33   
34   //Blackbox blackbox(argv, session_display, rc_file);
35   openbox.eventLoop();
36
37   return(0);
38 }