diff options
author | Matt Wilson <msw@redhat.com> | 2001-11-16 20:43:20 +0000 |
---|---|---|
committer | Matt Wilson <msw@src.gnome.org> | 2001-11-16 20:43:20 +0000 |
commit | ec37040d841792f665e79356aef6d6b335d2b5fb (patch) | |
tree | 23a59a97ef58646910800a266d258e52e11de719 | |
parent | fb0eb06617ac6315d80b4c79a3abcf8dffafa226 (diff) | |
download | pygtk-ec37040d841792f665e79356aef6d6b335d2b5fb.tar.gz |
need to cast to the right type for _PyGTK_API init.
2001-11-16 Matt Wilson <msw@redhat.com>
* gtk/pygtk.h (init_pygtk): need to cast to the right type for
_PyGTK_API init.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gtk/pygtk.h | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2001-11-16 Matt Wilson <msw@redhat.com> + + * gtk/pygtk.h (init_pygtk): need to cast to the right type for + _PyGTK_API init. + 2001-11-15 Matt Wilson <msw@redhat.com> * gtk/gtk.defs (GtkEditable.insert_text): note default for diff --git a/gtk/pygtk.h b/gtk/pygtk.h index 0ce2282a..01de930f 100644 --- a/gtk/pygtk.h +++ b/gtk/pygtk.h @@ -68,7 +68,7 @@ struct _PyGtk_FunctionStruct *_PyGtk_API; PyObject *module_dict = PyModule_GetDict(pygtk); \ PyObject *cobject = PyDict_GetItemString(module_dict, "_PyGtk_API"); \ if (PyCObject_Check(cobject)) \ - _PyGtk_API = (_PyGtk_FunctionStruct*) \ + _PyGtk_API = (struct _PyGtk_FunctionStruct*) \ PyCObject_AsVoidPtr(cobject); \ else { \ Py_FatalError("could not find _PyGtk_API object"); \ |