[gucharmap] Add mising file



commit a0e3fba3fbc38f9ebf4bdedec6751a6b6bb85d30
Author: Christian Persch <chpe gnome org>
Date:   Mon May 18 20:32:09 2009 +0200

    Add mising file
---
 bindings/python/gucharmapmodule.c |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/bindings/python/gucharmapmodule.c b/bindings/python/gucharmapmodule.c
new file mode 100644
index 0000000..f7f2200
--- /dev/null
+++ b/bindings/python/gucharmapmodule.c
@@ -0,0 +1,32 @@
+#include <Python.h>
+
+#include <config.h>
+
+#include <gucharmap/gucharmap.h>
+
+/* include this first, before NO_IMPORT_PYGOBJECT is defined */
+#include <pygobject.h>
+
+#include <pygtk/pygtk.h>
+
+void pygucharmap_register_classes(PyObject *d);
+void pygucharmap_add_constants(PyObject *module, const gchar *strip_prefix);
+
+extern PyMethodDef pygucharmap_functions[];
+
+DL_EXPORT(void) initgucharmap (void);
+
+DL_EXPORT(void)
+initgucharmap (void)
+{
+	PyObject *m, *d;
+
+	init_pygobject();
+	init_pygtk ();
+
+	m = Py_InitModule ("gucharmap", pygucharmap_functions);
+	d = PyModule_GetDict (m);
+
+	pygucharmap_register_classes (d);
+        pygucharmap_add_constants(m, "GUCHARMAP_");
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]