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 | |
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')
-rw-r--r-- | bindings/python/Makefile.am | 2 | ||||
-rw-r--r-- | bindings/python/ayatana_appindicatormodule.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am index f57a2f7..32d43a3 100644 --- a/bindings/python/Makefile.am +++ b/bindings/python/Makefile.am @@ -19,7 +19,7 @@ pkgappindicator_PYTHON = __init__.py appindicatordir = $(pkgpyexecdir)/ayatana_appindicator appindicator_LTLIBRARIES = _ayatana_appindicator.la -_ayatana_appindicator_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_appindicator +_ayatana_appindicator_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_ayatana_appindicator _ayatana_appindicator_la_LIBADD = $(APPINDICATOR_PYTHON_LIBS) -L$(top_builddir)/src/.libs -layatana-appindicator _ayatana_appindicator_la_SOURCES = ayatana_appindicatormodule.c nodist__ayatana_appindicator_la_SOURCES = ayatana_appindicator.c 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 ()) { |