mirror of https://github.com/GNOME/gimp.git
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.
This commit is contained in:
parent
0e108d8b0a
commit
1612db6507
|
@ -1,3 +1,10 @@
|
|||
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 *
|
||||
|
|
Loading…
Reference in New Issue