mirror of https://github.com/GNOME/gimp.git
c83f0e88af
The GimpLayer implementation of the GimpItem transform functions, and the GimpDrawable convert_type() function, apply their operation to both the layer and its mask. The subclasses of GimpLayer -- GimpGroupLayer and GimpTextLayer -- override some of these functions, providing their own logic for the layer part, and duplicating the mask part. Avoid this duplication by adding a set of virtual transform and type-conversion functions to GimpLayer. Have the GimpLayer implementaion of the corresponding GimpItem and GimpDrawable functions use these functions to apply the operation to the layer, while taking care of the mask themselves. Have GimpLayer's subclasses override the new virtual functions, instead of the GimpItem and GimpDrawable ones. Note that the existing implementation of convert_type() in GimpTextLayer neglected to convert the mask, hence text layer masks retained their old format after conversion. This issue is fixed as a side effect of this commit. |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile.am | ||
gimp-fonts.c | ||
gimp-fonts.h | ||
gimpfont.c | ||
gimpfont.h | ||
gimpfontlist.c | ||
gimpfontlist.h | ||
gimptext-compat.c | ||
gimptext-compat.h | ||
gimptext-parasite.c | ||
gimptext-parasite.h | ||
gimptext-vectors.c | ||
gimptext-vectors.h | ||
gimptext-xlfd.c | ||
gimptext-xlfd.h | ||
gimptext.c | ||
gimptext.h | ||
gimptextlayer-transform.c | ||
gimptextlayer-transform.h | ||
gimptextlayer-xcf.c | ||
gimptextlayer-xcf.h | ||
gimptextlayer.c | ||
gimptextlayer.h | ||
gimptextlayout-render.c | ||
gimptextlayout-render.h | ||
gimptextlayout.c | ||
gimptextlayout.h | ||
gimptextundo.c | ||
gimptextundo.h | ||
text-enums.c | ||
text-enums.h | ||
text-types.h |