diff options
| author | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2006-04-15 16:47:06 +0000 |
|---|---|---|
| committer | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2006-04-15 16:47:06 +0000 |
| commit | 63cc4251f90a0a49abec4470aa43df6f64761865 (patch) | |
| tree | d557a113b52234b7f4de0a4ee2069547db91426b /gobject | |
| parent | f1ce8d89acfed9d30b0dee5a7c508a0bf966e5f1 (diff) | |
ABI compatibility fixes
Diffstat (limited to 'gobject')
| -rw-r--r-- | gobject/__init__.py | 1 | ||||
| -rw-r--r-- | gobject/pygobject.h | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gobject/__init__.py b/gobject/__init__.py index fed14fb..43a2cfd 100644 --- a/gobject/__init__.py +++ b/gobject/__init__.py @@ -28,6 +28,7 @@ except ImportError: pass from _gobject import * +_PyGObject_API = _gobject._PyGObject_API class GObjectMeta(type): "Metaclass for automatically registering GObject classes" diff --git a/gobject/pygobject.h b/gobject/pygobject.h index 7274bc5..55c72b1 100644 --- a/gobject/pygobject.h +++ b/gobject/pygobject.h @@ -263,7 +263,7 @@ struct _PyGObject_Functions *_PyGObject_API; } G_STMT_END #define init_pygobject() G_STMT_START { \ - PyObject *gobject = PyImport_ImportModule("gobject._gobject"); \ + PyObject *gobject = PyImport_ImportModule("gobject"); \ if (gobject != NULL) { \ PyObject *mdict = PyModule_GetDict(gobject); \ PyObject *cobject = PyDict_GetItemString(mdict, "_PyGObject_API"); \ @@ -276,7 +276,7 @@ struct _PyGObject_Functions *_PyGObject_API; } \ } else { \ PyErr_SetString(PyExc_ImportError, \ - "could not import gobject._gobject"); \ + "could not import gobject"); \ return; \ } \ } G_STMT_END |
