Commit 1612db65 authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

plug-ins/pygimp/gimpmodule.c revert to old behavior of parasite_find

2005-07-17  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpmodule.c
        * plug-ins/pygimp/pygimp-drawable.c: revert to old behavior of
        parasite_find functions returning None when there isn't a parasite
        found. Fixed bug #310666.
parent 0e108d8b
2005-07-17 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpmodule.c
* plug-ins/pygimp/pygimp-drawable.c: revert to old behavior of
parasite_find functions returning None when there isn't a parasite
found. Fixed bug #310666.
2005-07-17 Nathan Summers <rock@gimp.org>
* libgimpwidgets/gimpresolutionentry.[ch]: spiffy new widget that given
......
......@@ -1161,19 +1161,11 @@ static PyObject *
pygimp_parasite_find(PyObject *self, PyObject *args)
{
char *name;
GimpParasite *para;
if (!PyArg_ParseTuple(args, "s:parasite_find", &name))
return NULL;
para = gimp_parasite_find(name);
if (!para) {
PyErr_Format(pygimp_error, "could not find parasite '%s'", name);
return NULL;
}
return pygimp_parasite_new(para);
return pygimp_parasite_new(gimp_parasite_find(name));
}
static PyObject *
......
......@@ -195,21 +195,11 @@ static PyObject *
drw_parasite_find(PyGimpDrawable *self, PyObject *args)
{
char *name;
GimpParasite *para;
if (!PyArg_ParseTuple(args, "s:parasite_find", &name))
return NULL;
para = gimp_drawable_parasite_find(self->ID, name);
if (!para) {
PyErr_Format(pygimp_error,
"could not find parasite '%s' on drawable (ID %d)",
name, self->ID);
return NULL;
}
return pygimp_parasite_new(para);
return pygimp_parasite_new(gimp_drawable_parasite_find(self->ID, name));
}
static PyObject *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment