Commit 1161b7fd authored by Kevin Turner's avatar Kevin Turner Committed by Kevin Turner
Browse files

under "layer", remove the call to gimp_channel_get_layer_id() as this

2000-08-09  Kevin Turner  <acapnotic@users.sourceforge.net>

	* plug-ins/pygimp/gimpmodule.c (chn_getattr): under "layer",
	remove the call to gimp_channel_get_layer_id() as this function
	does not exist.  It would be well for someone who knows pygimp
	better than I to review this change, but it keeps pygimp from
	being *completely* broken.
parent 47d742cc
2000-08-09 Kevin Turner <acapnotic@users.sourceforge.net>
* plug-ins/pygimp/gimpmodule.c (chn_getattr): under "layer",
remove the call to gimp_channel_get_layer_id() as this function
does not exist. It would be well for someone who knows pygimp
better than I to review this change, but it keeps pygimp from
being *completely* broken.
2000-08-09 Sven Neumann <sven@gimp.org>
 
* plug-ins/gfli/gfli.c: removed double install_procedure for
......@@ -94,6 +102,7 @@ Mon Aug 7 10:07:12 CEST 2000 Marc Lehmann <pcg@goof.com>
* plug-ins/common/png.c: Applied patch from pk@kaempf.ch (closes
bug #20029).
 
>>>>>>> 1.2843
2000-08-06 Asbjorn Pettersen <asbjornP@dualog.no>
 
* app/plug_in.c (xspawnv): #define xspawnv spawnv for OS/2
......
......@@ -2716,7 +2716,19 @@ chn_getattr(self, name)
if (!strcmp(name, "is_indexed"))
return PyInt_FromLong(gimp_drawable_is_indexed(self->ID));
if (!strcmp(name, "layer")) {
id = gimp_channel_get_layer_id(self->ID);
/* id = gimp_channel_get_layer_id(self->ID); */
/* It isn't quite clear what that was supposed to achieve, but
the gimp_channel_get_layer_id call no longer exists, which
was breaking everything that tried to load gimpmodule.so.
With no-one apparently maintaing it, the options seem to be:
A) remove this "layer" attribute entirely, as it doesn't
seem to make much sense.
B) Just return the channel ID.
The latter seems more conservative, so that's what I'll do.
-- acapnotic@users.sourceforge.net (08/09/2000) */
id = self->ID;
if (id == -1) {
Py_INCREF(Py_None);
return Py_None;
......
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