[gthumb] tiff saver: renamed some functions



commit 6c98d56027dbed8ef3fffa8f2ddee1b5dde1f3d7
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Dec 8 17:37:02 2013 +0100

    tiff saver: renamed some functions

 extensions/cairo_io/gth-image-saver-tiff.c |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)
---
diff --git a/extensions/cairo_io/gth-image-saver-tiff.c b/extensions/cairo_io/gth-image-saver-tiff.c
index 6a9cc8f..d869852 100644
--- a/extensions/cairo_io/gth-image-saver-tiff.c
+++ b/extensions/cairo_io/gth-image-saver-tiff.c
@@ -210,14 +210,14 @@ gth_image_saver_tiff_can_save (GthImageSaver *self,
 
 
 static tsize_t
-tiff_save_read (thandle_t handle, tdata_t buf, tsize_t size)
+tiff_read (thandle_t handle, tdata_t buf, tsize_t size)
 {
        return -1;
 }
 
 
 static tsize_t
-tiff_save_write (thandle_t handle, tdata_t buf, tsize_t size)
+tiff_write (thandle_t handle, tdata_t buf, tsize_t size)
 {
         GthBufferData *buffer_data = (GthBufferData *)handle;
 
@@ -227,7 +227,7 @@ tiff_save_write (thandle_t handle, tdata_t buf, tsize_t size)
 
 
 static toff_t
-tiff_save_seek (thandle_t handle, toff_t offset, int whence)
+tiff_seek (thandle_t handle, toff_t offset, int whence)
 {
        GthBufferData *buffer_data = (GthBufferData *)handle;
 
@@ -236,14 +236,14 @@ tiff_save_seek (thandle_t handle, toff_t offset, int whence)
 
 
 static int
-tiff_save_close (thandle_t context)
+tiff_close (thandle_t context)
 {
         return 0;
 }
 
 
 static toff_t
-tiff_save_size (thandle_t handle)
+tiff_size (thandle_t handle)
 {
         return -1;
 }
@@ -367,11 +367,15 @@ _cairo_surface_write_as_tiff (cairo_surface_t  *image,
        rowsperstrip = TILE_HEIGHT;
 
        buffer_data = gth_buffer_data_new ();
-       tif = TIFFClientOpen ("gth-tiff-writer", "w", buffer_data,
-                             tiff_save_read, tiff_save_write,
-                             tiff_save_seek, tiff_save_close,
-                             tiff_save_size,
-                             NULL, NULL);
+       tif = TIFFClientOpen ("gth-tiff-writer", "w",
+                             buffer_data,
+                             tiff_read,
+                             tiff_write,
+                             tiff_seek,
+                             tiff_close,
+                             tiff_size,
+                             NULL,
+                             NULL);
        if (tif == NULL) {
                g_set_error_literal (error,
                                     GDK_PIXBUF_ERROR,


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