Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bindings/gecko/geckomodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/gecko/geckomodule.c')
-rw-r--r--bindings/gecko/geckomodule.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/bindings/gecko/geckomodule.c b/bindings/gecko/geckomodule.c
new file mode 100644
index 0000000..ba16813
--- /dev/null
+++ b/bindings/gecko/geckomodule.c
@@ -0,0 +1,23 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+/* include this first, before NO_IMPORT_PYGOBJECT is defined */
+#include <pygobject.h>
+
+extern PyMethodDef pygecko_functions[];
+
+DL_EXPORT(void)
+initgecko(void)
+{
+ PyObject *m, *d;
+
+ init_pygobject ();
+
+ m = Py_InitModule ("gecko", pygecko_functions);
+ d = PyModule_GetDict (m);
+
+ if (PyErr_Occurred ()) {
+ Py_FatalError ("can't initialise module globalkeys");
+ }
+}