> > Now, I just want to blur my drawable from my plugin.
> >I tried this:
> > GimpParam *rreturn_vals;
> > gint nnreturn_vals;
> > rreturn_vals = gimp_run_procedure("plug_in_blur", &nnreturn_vals,
> > GIMP_PDB_INT32, GIMP_RUN_NONINTERACTIVE,
> > GIMP_PDB_IMAGE, param.data.d_image,
> > GIMP_PDB_DRAWABLE, gimp_drawable_get
> > (param.data.d_drawable),
> > GIMP_PDB_END);
> >However, I get the following error: [...]
> The problem is the "gimp_drawable_get". As you can learn in the
> "GimpDrawable" section of the libgimp documentation, this function
> does not return the integer ID of the drawable, it creatss a
> new struct containing information about the drawable. I think
> you should just use param.data.d_drawable. (The handling of
> drawables in libgimp is pretty awkward, but probably shouldn't
> be changed at this point because it would create huge backward
> compatibility issues.)
Yep, it worked!
Thanks a lot!!
Gimp-developer mailing list