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:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-09-26 19:58:54 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-09-26 19:58:54 (GMT)
commit5d78b148ffe14e1653882bb352afdc8384d8c8e2 (patch)
treeaa671a6c26d022f87520313ee4b6721f867b6ee9 /bindings/gecko/geckomodule.c
parent92e37fd9048ae5a89a65eec1915e588108125d3c (diff)
Add a gecko module. Disable popups.
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");
+ }
+}