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/pyempathy/pyempathymodule.c | 2 ++ python/pyempathygtk/pyempathygtkmodule.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'python') diff --git a/python/pyempathy/pyempathymodule.c b/python/pyempathy/pyempathymodule.c index 9448665c3..59c093c83 100644 --- a/python/pyempathy/pyempathymodule.c +++ b/python/pyempathy/pyempathymodule.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) initempathy(void); extern PyMethodDef empathy_functions[]; @@ -17,6 +18,7 @@ initempathy(void) d = PyModule_GetDict (m); empathy_register_classes (d); + empathy_add_constants(m, "EMPATHY_"); if (PyErr_Occurred ()) { PyErr_Print(); 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