renamed tile_sanitize_rowhints() to tile_allocate_rowhints().

2007-05-29  Sven Neumann  <sven@gimp.org>

	* app/base/tile.[ch]: renamed tile_sanitize_rowhints() to
	tile_allocate_rowhints().
	
	* app/base/tile-manager.c
	* app/paint-funcs/paint-funcs.c: changed accordingly.

svn path=/trunk/; revision=22648
This commit is contained in:
Sven Neumann 2007-05-29 09:06:15 +00:00 committed by Sven Neumann
parent 18d586fb1d
commit 3081e02db0
5 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2007-05-29 Sven Neumann <sven@gimp.org>
* app/base/tile.[ch]: renamed tile_sanitize_rowhints() to
tile_allocate_rowhints().
* app/base/tile-manager.c
* app/paint-funcs/paint-funcs.c: changed accordingly.
2007-05-29 Michael Natterer <mitch@gimp.org>
* app/widgets/gimptoolbox-dnd.c (gimp_toolbox_drop_drawable): also

View File

@ -210,7 +210,8 @@ tile_manager_get (TileManager *tm,
if ((*tile_ptr)->rowhint)
{
tile_sanitize_rowhints (new);
tile_allocate_rowhints (new);
memcpy (new->rowhint, (*tile_ptr)->rowhint,
new->eheight * sizeof (TileRowHint));
}

View File

@ -61,7 +61,7 @@ static void tile_destroy (Tile *tile);
void
tile_sanitize_rowhints (Tile *tile)
tile_allocate_rowhints (Tile *tile)
{
if (! tile->rowhint)
tile->rowhint = g_slice_alloc0 (sizeof (TileRowHint) * TILE_HEIGHT);

View File

@ -78,7 +78,7 @@ TileRowHint tile_get_rowhint (Tile *tile,
void tile_set_rowhint (Tile *tile,
gint yoff,
TileRowHint rowhint);
void tile_sanitize_rowhints (Tile *tile);
void tile_allocate_rowhints (Tile *tile);
void * tile_data_pointer (Tile *tile,
gint xoff,

View File

@ -162,7 +162,7 @@ update_tile_rowhints (Tile *tile,
g_assert (tile != NULL);
#endif
tile_sanitize_rowhints (tile);
tile_allocate_rowhints (tile);
bpp = tile_bpp (tile);
ewidth = tile_ewidth (tile);