summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-23 00:04:32 +0000
committerDana Jansens <danakj@orodu.net>2002-12-23 00:04:32 +0000
commit5f78b51429b204f89b654d634bb4cc8cb78b95f6 (patch)
treea2a1d99ac17304a564d52494a3f2bb9752e62907 /src/main.cc
parent3cf5a8b6dd5b09a8550c9ecfc19f8e0e884778cc (diff)
using python and swig for now.
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/main.cc b/src/main.cc
index 1d6ce0b1..5d878d79 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -13,6 +13,8 @@ extern "C" {
# include <locale.h>
#endif // HAVE_LOCALE_H
+#include <guile/gh.h>
+
#include "gettext.h"
}
@@ -22,17 +24,21 @@ using std::string;
#include "blackbox.hh"
#include "openbox.hh"
-int main(int argc, char **argv) {
- // initialize the locale
- setlocale(LC_ALL, "");
- bindtextdomain(PACKAGE, LOCALEDIR);
- textdomain(PACKAGE);
-
+void main_prog(int argc, char **argv) {
ob::Openbox openbox(argc, argv);
//ob::Blackbox blackbox(argc, argv, 0);
//Blackbox blackbox(argv, session_display, rc_file);
openbox.eventLoop();
+}
+
+int main(int argc, char **argv) {
+ // initialize the locale
+ setlocale(LC_ALL, "");
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
- return(0);
+ // start up guile
+ //gh_enter(argc, argv, main_prog);
+ main_prog(argc, argv);
}