removed the _clear() wrapper.
2003-09-03 Michael Natterer <mitch@gimp.org> * app/core/gimpimage-mask-select.[ch]: removed the _clear() wrapper. * app/core/gimpimage-mask.[ch]: changed accordingly. Added "const gchar *undo desc" parameter to gimp_image_mask_select_vectors(). * app/core/gimpimage-qmask.c * app/gui/vectors-commands.c * app/text/gimptext-compat.c * app/tools/gimpbucketfilltool.c * app/tools/gimpfreeselecttool.c * app/tools/gimpfuzzyselecttool.c * app/tools/gimprectselecttool.c * app/widgets/gimpvectorstreeview.c * tools/pdbgen/pdb/paths.pdb * tools/pdbgen/pdb/selection.pdb: changed accordingly. Also replaced some wrappers which still exist. * tools/pdbgen/pdb/paths.pdb: stroke using gimp_item_stroke(). * app/pdb/paths_cmds.c * app/pdb/selection_cmds.c: regenerated.
This commit is contained in:

committed by
Michael Natterer

parent
6ce4e7102c
commit
27a2f0f6de
@ -29,12 +29,12 @@
|
||||
#include "text-types.h"
|
||||
|
||||
#include "core/gimp.h"
|
||||
#include "core/gimpchannel.h"
|
||||
#include "core/gimpcontext.h"
|
||||
#include "core/gimpimage.h"
|
||||
#include "core/gimpcontext.h"
|
||||
#include "core/gimpdrawable.h"
|
||||
#include "core/gimpimage.h"
|
||||
#include "core/gimpimage-mask.h"
|
||||
#include "core/gimpimage-undo.h"
|
||||
#include "core/gimplayer-floating-sel.h"
|
||||
|
||||
@ -114,8 +114,8 @@ text_render (GimpImage *gimage,
|
||||
* this might not always be desired, but in general,
|
||||
* it seems like the correct behavior.
|
||||
*/
|
||||
if (! gimp_image_mask_is_empty (gimage))
|
||||
gimp_image_mask_clear (gimage, NULL);
|
||||
if (! gimp_channel_is_empty (gimp_image_get_mask (gimage)))
|
||||
gimp_channel_clear (gimp_image_get_mask (gimage), NULL, TRUE);
|
||||
|
||||
/* If the drawable is NULL, create a new layer */
|
||||
if (drawable == NULL)
|
||||
|
Reference in New Issue
Block a user