summaryrefslogtreecommitdiff
path: root/gtk/libglade.override
diff options
context:
space:
mode:
authorGustavo J. A. M. Carneiro <gcarneiro@src.gnome.org>2004-07-19 18:24:48 +0000
committerGustavo J. A. M. Carneiro <gcarneiro@src.gnome.org>2004-07-19 18:24:48 +0000
commit47004cba4475d456d5bcf8cc2cf75993b11ad80a (patch)
tree732558df6aa05fee1c2bcc881593f517c418c3a3 /gtk/libglade.override
parentaed40fca1d37ce94bfbf867b2a7ee57b9530e7e5 (diff)
downloadpygtk-47004cba4475d456d5bcf8cc2cf75993b11ad80a.tar.gz
allow pydict to be really optional in GladeXML
Diffstat (limited to 'gtk/libglade.override')
-rw-r--r--gtk/libglade.override2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/libglade.override b/gtk/libglade.override
index f74405c3..0717eda4 100644
--- a/gtk/libglade.override
+++ b/gtk/libglade.override
@@ -567,7 +567,7 @@ _wrap_glade_xml_new(PyGObject *self, PyObject *args, PyObject *kwargs)
&pydict))
return -1;
- if (!PyMapping_Check(pydict)) {
+ if (pydict && !PyMapping_Check(pydict)) {
PyErr_SetString(PyExc_TypeError,
"typedict must be a mapping");
return -1;