aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/pyempathy/pyempathymodule.c2
-rw-r--r--python/pyempathygtk/pyempathygtkmodule.c2
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();