diff options
Diffstat (limited to 'gobject/pygobject.c')
| -rw-r--r-- | gobject/pygobject.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gobject/pygobject.c b/gobject/pygobject.c index 76bfb5d..ca41dd8 100644 --- a/gobject/pygobject.c +++ b/gobject/pygobject.c @@ -850,6 +850,12 @@ pygobject_chain_from_overridden(PyGObject *self, PyObject *args) GValue *params, ret = { 0, }; ihint = g_signal_get_invocation_hint(self->obj); + if (!ihint) { + PyErr_SetString(PyExc_TypeError, "could not find signa invocation " + "information for this object."); + return NULL; + } + signal_id = ihint->signal_id; name = g_signal_name(signal_id); |
