From 02c2e9960f1a66ed3661e67f1038a6aeea7a2d69 Mon Sep 17 00:00:00 2001 From: Mike Sheldon Date: Tue, 3 Mar 2009 09:34:43 +0000 Subject: Automatically wrap enums in the empathy and empathygtk python bindings * Automatically wrap enums in the empathy and empathygtk python bindings From: Mike Sheldon svn path=/trunk/; revision=2548 --- python/pyempathygtk/pyempathygtkmodule.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/pyempathygtk') diff --git a/python/pyempathygtk/pyempathygtkmodule.c b/python/pyempathygtk/pyempathygtkmodule.c index 765b46d7d..20e09e3f3 100644 --- a/python/pyempathygtk/pyempathygtkmodule.c +++ b/python/pyempathygtk/pyempathygtkmodule.c @@ -3,6 +3,7 @@ #include void empathy_register_classes (PyObject *d); +void empathy_add_constants(PyObject *module, const gchar *strip_prefix); DL_EXPORT(void) initempathygtk(void); extern PyMethodDef empathy_functions[]; @@ -16,6 +17,7 @@ DL_EXPORT(void) initempathygtk(void) d = PyModule_GetDict (m); empathy_register_classes (d); + empathy_add_constants(m, "EMPATHY_"); if (PyErr_Occurred ()) { PyErr_Print(); -- cgit v1.2.3