summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-11-16 20:43:20 +0000
committerMatt Wilson <msw@src.gnome.org>2001-11-16 20:43:20 +0000
commitec37040d841792f665e79356aef6d6b335d2b5fb (patch)
tree23a59a97ef58646910800a266d258e52e11de719
parentfb0eb06617ac6315d80b4c79a3abcf8dffafa226 (diff)
downloadpygtk-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--ChangeLog5
-rw-r--r--gtk/pygtk.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 77fc6ecf..91b54fd4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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"); \