mirror of https://github.com/GNOME/gimp.git
added gimp_buffer_get_tiles().
2008-08-07 Sven Neumann <sven@gimp.org> * app/core/gimpbuffer.[ch]: added gimp_buffer_get_tiles(). * app/actions/edit-commands.c * app/core/gimpbrushclipboard.c * app/core/gimppatternclipboard.c: use the new accessor function. svn path=/trunk/; revision=26426
This commit is contained in:
parent
60fcaa9629
commit
4eb3689b62
|
@ -1,3 +1,11 @@
|
|||
2008-08-07 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/core/gimpbuffer.[ch]: added gimp_buffer_get_tiles().
|
||||
|
||||
* app/actions/edit-commands.c
|
||||
* app/core/gimpbrushclipboard.c
|
||||
* app/core/gimppatternclipboard.c: use the new accessor function.
|
||||
|
||||
2008-08-07 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/core/gimplayer.c
|
||||
|
|
|
@ -332,7 +332,7 @@ edit_paste_as_new_layer_cmd_callback (GtkAction *action,
|
|||
{
|
||||
GimpLayer *layer;
|
||||
|
||||
layer = gimp_layer_new_from_tiles (buffer->tiles,
|
||||
layer = gimp_layer_new_from_tiles (gimp_buffer_get_tiles (buffer),
|
||||
image,
|
||||
gimp_image_base_type_with_alpha (image),
|
||||
_("Clibboard"),
|
||||
|
|
|
@ -207,7 +207,7 @@ gimp_brush_clipboard_buffer_changed (Gimp *gimp,
|
|||
|
||||
if (gimp->global_buffer)
|
||||
{
|
||||
TileManager *tiles = gimp->global_buffer->tiles;
|
||||
TileManager *tiles = gimp_buffer_get_tiles (gimp->global_buffer);
|
||||
GimpImageType type = gimp_buffer_get_image_type (gimp->global_buffer);
|
||||
|
||||
width = MIN (gimp_buffer_get_width (gimp->global_buffer), 512);
|
||||
|
|
|
@ -327,3 +327,11 @@ gimp_buffer_get_image_type (const GimpBuffer *buffer)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
TileManager *
|
||||
gimp_buffer_get_tiles (const GimpBuffer *buffer)
|
||||
{
|
||||
g_return_val_if_fail (GIMP_IS_BUFFER (buffer), NULL);
|
||||
|
||||
return buffer->tiles;
|
||||
}
|
||||
|
|
|
@ -59,6 +59,7 @@ gint gimp_buffer_get_height (const GimpBuffer *buffer);
|
|||
|
||||
gint gimp_buffer_get_bytes (const GimpBuffer *buffer);
|
||||
GimpImageType gimp_buffer_get_image_type (const GimpBuffer *buffer);
|
||||
TileManager * gimp_buffer_get_tiles (const GimpBuffer *buffer);
|
||||
|
||||
|
||||
#endif /* __GIMP_BUFFER_H__ */
|
||||
|
|
|
@ -210,7 +210,8 @@ gimp_pattern_clipboard_buffer_changed (Gimp *gimp,
|
|||
|
||||
pattern->mask = temp_buf_new (width, height, bytes, 0, 0, NULL);
|
||||
|
||||
pixel_region_init (&bufferPR, gimp->global_buffer->tiles,
|
||||
pixel_region_init (&bufferPR,
|
||||
gimp_buffer_get_tiles (gimp->global_buffer),
|
||||
0, 0, width, height, FALSE);
|
||||
pixel_region_init_temp_buf (&maskPR, pattern->mask,
|
||||
0, 0, width, height);
|
||||
|
|
Loading…
Reference in New Issue