]> Dogcows Code - chaz/openbox/blobdiff - src/main.cc
python with callbacks!
[chaz/openbox] / src / main.cc
index 3bab740af93c3f78dd70dfe321755d6084eb2459..5d878d79c7f0053e6d9425c55240d4e523dd6b0b 100644 (file)
@@ -9,6 +9,12 @@
 #endif // HAVE_CONFIG_H
 
 extern "C" {
+#ifdef    HAVE_LOCALE_H
+# include <locale.h>
+#endif // HAVE_LOCALE_H
+
+#include <guile/gh.h>
+
 #include "gettext.h"
 }
 
@@ -18,17 +24,21 @@ using std::string;
 #include "blackbox.hh"
 #include "openbox.hh"
 
+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);
 
-  //ob::Openbox openbox(argc, argv);
-  ob::Blackbox blackbox(argc, argv, 0);
-  
-  //Blackbox blackbox(argv, session_display, rc_file);
-  blackbox.eventLoop();
-
-  return(0);
+  // start up guile
+  //gh_enter(argc, argv, main_prog);
+  main_prog(argc, argv);
 }
This page took 0.023928 seconds and 4 git commands to generate.