gimp r26426 - in trunk: . app/actions app/core



Author: neo
Date: Thu Aug  7 17:23:45 2008
New Revision: 26426
URL: http://svn.gnome.org/viewvc/gimp?rev=26426&view=rev

Log:
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.



Modified:
   trunk/ChangeLog
   trunk/app/actions/edit-commands.c
   trunk/app/core/gimpbrushclipboard.c
   trunk/app/core/gimpbuffer.c
   trunk/app/core/gimpbuffer.h
   trunk/app/core/gimppatternclipboard.c

Modified: trunk/app/actions/edit-commands.c
==============================================================================
--- trunk/app/actions/edit-commands.c	(original)
+++ trunk/app/actions/edit-commands.c	Thu Aug  7 17:23:45 2008
@@ -332,7 +332,7 @@
     {
       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"),

Modified: trunk/app/core/gimpbrushclipboard.c
==============================================================================
--- trunk/app/core/gimpbrushclipboard.c	(original)
+++ trunk/app/core/gimpbrushclipboard.c	Thu Aug  7 17:23:45 2008
@@ -207,7 +207,7 @@
 
   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);

Modified: trunk/app/core/gimpbuffer.c
==============================================================================
--- trunk/app/core/gimpbuffer.c	(original)
+++ trunk/app/core/gimpbuffer.c	Thu Aug  7 17:23:45 2008
@@ -327,3 +327,11 @@
 
   return 0;
 }
+
+TileManager *
+gimp_buffer_get_tiles (const GimpBuffer *buffer)
+{
+  g_return_val_if_fail (GIMP_IS_BUFFER (buffer), NULL);
+
+  return buffer->tiles;
+}

Modified: trunk/app/core/gimpbuffer.h
==============================================================================
--- trunk/app/core/gimpbuffer.h	(original)
+++ trunk/app/core/gimpbuffer.h	Thu Aug  7 17:23:45 2008
@@ -59,6 +59,7 @@
 
 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__ */

Modified: trunk/app/core/gimppatternclipboard.c
==============================================================================
--- trunk/app/core/gimppatternclipboard.c	(original)
+++ trunk/app/core/gimppatternclipboard.c	Thu Aug  7 17:23:45 2008
@@ -210,7 +210,8 @@
 
       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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]