diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-09-23 01:01:33 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-09-23 01:01:33 +0200 |
commit | 8a971533354af8dfd5cfca70d12c9fe648f4e126 (patch) | |
tree | 673dfc717a35fcd47d50fd7d64c4af86ce51a3d7 /bindings/python/ayatana_appindicatormodule.c | |
parent | 75d83e06db89b43c24cef3ce6a70f16c38feb3d2 (diff) | |
download | libayatana-appindicator-8a971533354af8dfd5cfca70d12c9fe648f4e126.tar.gz libayatana-appindicator-8a971533354af8dfd5cfca70d12c9fe648f4e126.tar.bz2 libayatana-appindicator-8a971533354af8dfd5cfca70d12c9fe648f4e126.zip |
Python2 bindings: Fix import ayatana_appindicator failure by correctly adding the ayatana namespace.
Diffstat (limited to 'bindings/python/ayatana_appindicatormodule.c')
-rw-r--r-- | bindings/python/ayatana_appindicatormodule.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bindings/python/ayatana_appindicatormodule.c b/bindings/python/ayatana_appindicatormodule.c index 31d23a2..4bc7a04 100644 --- a/bindings/python/ayatana_appindicatormodule.c +++ b/bindings/python/ayatana_appindicatormodule.c @@ -29,20 +29,20 @@ License version 3 and version 2.1 along with this program. If not, see */ #include <pygobject.h> -void pyappindicator_register_classes (PyObject *d); -extern PyMethodDef pyappindicator_functions[]; +void pyayatana_appindicator_register_classes (PyObject *d); +extern PyMethodDef pyayatana_appindicator_functions[]; DL_EXPORT(void) -init_appindicator(void) +init_ayatana_appindicator(void) { PyObject *m, *d; init_pygobject (); - m = Py_InitModule ("_ayatana_appindicator", pyappindicator_functions); + m = Py_InitModule ("_ayatana_appindicator", pyayatana_appindicator_functions); d = PyModule_GetDict (m); - pyappindicator_register_classes (d); + pyayatana_appindicator_register_classes (d); _appindicator_add_constants (m, "APP_INDICATOR_"); if (PyErr_Occurred ()) { |