diff options
author | Mike Sheldon <mike@mikeasoft.com> | 2009-03-03 17:34:43 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-03-03 17:34:43 +0800 |
commit | 02c2e9960f1a66ed3661e67f1038a6aeea7a2d69 (patch) | |
tree | 2b9a8518679f366a6f891ed3204d9e388b799c93 | |
parent | 9735053b83130a31751fa7bfe415c966ddffcf69 (diff) | |
download | gsoc2013-empathy-02c2e9960f1a66ed3661e67f1038a6aeea7a2d69.tar gsoc2013-empathy-02c2e9960f1a66ed3661e67f1038a6aeea7a2d69.tar.gz gsoc2013-empathy-02c2e9960f1a66ed3661e67f1038a6aeea7a2d69.tar.bz2 gsoc2013-empathy-02c2e9960f1a66ed3661e67f1038a6aeea7a2d69.tar.lz gsoc2013-empathy-02c2e9960f1a66ed3661e67f1038a6aeea7a2d69.tar.xz gsoc2013-empathy-02c2e9960f1a66ed3661e67f1038a6aeea7a2d69.tar.zst gsoc2013-empathy-02c2e9960f1a66ed3661e67f1038a6aeea7a2d69.zip |
Automatically wrap enums in the empathy and empathygtk python bindings
* Automatically wrap enums in the empathy and empathygtk python bindings
From: Mike Sheldon <mike@mikeasoft.com>
svn path=/trunk/; revision=2548
-rw-r--r-- | python/pyempathy/pyempathymodule.c | 2 | ||||
-rw-r--r-- | python/pyempathygtk/pyempathygtkmodule.c | 2 |
2 files changed, 4 insertions, 0 deletions
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 <pygobject.h> 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 <pygobject.h> 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(); |