gimpgrad.cpp revision b6057c3a851bd7a51e11bf08222474d720be5119
273e421813f295d65aab512f508e8fb575d997d4gouldtj * Inkscape::Extension::Internal::GimpGrad implementation
273e421813f295d65aab512f508e8fb575d997d4gouldtj * Ted Gould <ted@gould.cx>
273e421813f295d65aab512f508e8fb575d997d4gouldtj * Abhishek Sharma
273e421813f295d65aab512f508e8fb575d997d4gouldtj * Copyright (C) 2004-2005 Authors
273e421813f295d65aab512f508e8fb575d997d4gouldtj * Released under GNU GPL, read the file 'COPYING' for more information
273e421813f295d65aab512f508e8fb575d997d4gouldtj \brief A function to allocate anything -- just an example here
273e421813f295d65aab512f508e8fb575d997d4gouldtj \param module Unused
273e421813f295d65aab512f508e8fb575d997d4gouldtj \return Whether the load was sucessful
d9711532c4ac816bb0dd355f048ce0e26f542710gouldtjbool GimpGrad::load (Inkscape::Extension::Extension */*module*/)
273e421813f295d65aab512f508e8fb575d997d4gouldtj // std::cout << "Hey, I'm loading!\n" << std::endl;
273e421813f295d65aab512f508e8fb575d997d4gouldtj \brief A function to remove what was allocated
273e421813f295d65aab512f508e8fb575d997d4gouldtj \param module Unused
273e421813f295d65aab512f508e8fb575d997d4gouldtj \return None
273e421813f295d65aab512f508e8fb575d997d4gouldtjvoid GimpGrad::unload (Inkscape::Extension::Extension */*module*/)
273e421813f295d65aab512f508e8fb575d997d4gouldtj // std::cout << "Nooo! I'm being unloaded!" << std::endl;
return ret;
return NULL;
goto error;
goto error;
goto error;
goto error;
goto error;
goto error;
* gimpgradient-load.c). We try to use the same error handling as gimp, so that
goto error;
long n_segs_found = 0;
goto error;
goto error;
goto error;
goto error;
goto error;
* sRGB space (or whatever the default in SVG is). See gimp/app/core/gimpgradient.c
++n_segs_found;
goto error;
goto error;
return NULL;
#include "clear-n_.h"
"<mimetype>application/x-gimp-gradient</mimetype>\n"