]> Dogcows Code - chaz/openbox/blob - src/main.cc
using python and swig for now.
[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 <guile/gh.h>
17
18 #include "gettext.h"
19 }
20
21 #include <string>
22 using std::string;
23
24 #include "blackbox.hh"
25 #include "openbox.hh"
26
27 void main_prog(int argc, char **argv) {
28 ob::Openbox openbox(argc, argv);
29 //ob::Blackbox blackbox(argc, argv, 0);
30
31 //Blackbox blackbox(argv, session_display, rc_file);
32 openbox.eventLoop();
33 }
34
35 int main(int argc, char **argv) {
36 // initialize the locale
37 setlocale(LC_ALL, "");
38 bindtextdomain(PACKAGE, LOCALEDIR);
39 textdomain(PACKAGE);
40
41 // start up guile
42 //gh_enter(argc, argv, main_prog);
43 main_prog(argc, argv);
44 }
This page took 0.035169 seconds and 5 git commands to generate.