[gimp/goat-invasion: 254/412] app: remove the TileValidateProc from gimp_channel_new_mask()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 254/412] app: remove the TileValidateProc from gimp_channel_new_mask()
- Date: Tue, 3 Apr 2012 09:54:27 +0000 (UTC)
commit f60674dff9794719950c54b445d18aaf312d720f
Author: Michael Natterer <mitch gimp org>
Date: Mon Mar 26 00:37:57 2012 +0200
app: remove the TileValidateProc from gimp_channel_new_mask()
and simply gegl_buffer_clear() the thing instead.
app/core/gimpchannel.c | 20 ++------------------
1 files changed, 2 insertions(+), 18 deletions(-)
---
diff --git a/app/core/gimpchannel.c b/app/core/gimpchannel.c
index 34658e5..090410f 100644
--- a/app/core/gimpchannel.c
+++ b/app/core/gimpchannel.c
@@ -26,9 +26,6 @@
#include "core-types.h"
-#include "base/tile.h"
-#include "base/tile-manager.h"
-
#include "paint-funcs/paint-funcs.h"
#include "paint/gimppaintcore-stroke.h"
@@ -220,9 +217,6 @@ static void gimp_channel_real_shrink (GimpChannel *channel,
gboolean edge_lock,
gboolean push_undo);
-static void gimp_channel_validate_tile (TileManager *tm,
- Tile *tile);
-
G_DEFINE_TYPE_WITH_CODE (GimpChannel, gimp_channel, GIMP_TYPE_DRAWABLE,
G_IMPLEMENT_INTERFACE (GIMP_TYPE_PICKABLE,
@@ -1614,15 +1608,6 @@ gimp_channel_real_shrink (GimpChannel *channel,
gimp_item_get_height (GIMP_ITEM (channel)));
}
-static void
-gimp_channel_validate_tile (TileManager *tm,
- Tile *tile)
-{
- /* Set the contents of the tile to empty */
- memset (tile_data_pointer (tile, 0, 0),
- TRANSPARENT_OPACITY, tile_size (tile));
-}
-
/* public functions */
@@ -1932,9 +1917,8 @@ gimp_channel_new_mask (GimpImage *image,
new_channel = gimp_channel_new (image, width, height,
_("Selection Mask"), NULL);
- tile_manager_set_validate_proc (gimp_drawable_get_tiles (GIMP_DRAWABLE (new_channel)),
- (TileValidateProc) gimp_channel_validate_tile,
- NULL);
+ gegl_buffer_clear (gimp_drawable_get_buffer (GIMP_DRAWABLE (new_channel)),
+ NULL);
return new_channel;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]