[gthumb] image viewer: added a function to get the image if present



commit 9cb01f4c96525f38fca2b0ee2bcb98af829708b8
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Oct 6 14:28:15 2013 +0200

    image viewer: added a function to get the image if present

 gthumb/gth-image-viewer.c |    7 +++++++
 gthumb/gth-image-viewer.h |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-image-viewer.c b/gthumb/gth-image-viewer.c
index 84b1343..a620e7f 100644
--- a/gthumb/gth-image-viewer.c
+++ b/gthumb/gth-image-viewer.c
@@ -1986,6 +1986,13 @@ gth_image_viewer_get_has_alpha (GthImageViewer *self)
 }
 
 
+GthImage *
+gth_image_viewer_get_image (GthImageViewer *self)
+{
+       return self->priv->image;
+}
+
+
 GdkPixbuf *
 gth_image_viewer_get_current_pixbuf (GthImageViewer *self)
 {
diff --git a/gthumb/gth-image-viewer.h b/gthumb/gth-image-viewer.h
index d22361f..2940905 100644
--- a/gthumb/gth-image-viewer.h
+++ b/gthumb/gth-image-viewer.h
@@ -188,6 +188,7 @@ void           gth_image_viewer_remove_painter           (GthImageViewer
 int            gth_image_viewer_get_image_width          (GthImageViewer        *viewer);
 int            gth_image_viewer_get_image_height         (GthImageViewer        *viewer);
 gboolean       gth_image_viewer_get_has_alpha            (GthImageViewer        *viewer);
+GthImage *     gth_image_viewer_get_image                (GthImageViewer        *viewer);
 GdkPixbuf *    gth_image_viewer_get_current_pixbuf       (GthImageViewer        *viewer);
 cairo_surface_t *
               gth_image_viewer_get_current_image        (GthImageViewer        *viewer);


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