[gnome-photos/wip/rishi/zoom: 7/7] image-view: photos_image_view_set_zoom



commit 81e002b157b3c179734d6b0a25d1b2d7ac25482c
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Mar 30 10:46:17 2017 +0200

    image-view: photos_image_view_set_zoom

 src/photos-image-view.c |    8 ++++++++
 src/photos-image-view.h |    2 ++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-image-view.c b/src/photos-image-view.c
index 2e12039..d6a42e3 100644
--- a/src/photos-image-view.c
+++ b/src/photos-image-view.c
@@ -520,6 +520,7 @@ void
 photos_image_view_set_node (PhotosImageView *self, GeglNode *node)
 {
   g_return_if_fail (PHOTOS_IS_IMAGE_VIEW (self));
+  g_return_if_fail (node == NULL || GEGL_IS_NODE (node));
 
   if (self->node == node)
     return;
@@ -553,3 +554,10 @@ photos_image_view_set_node (PhotosImageView *self, GeglNode *node)
   photos_image_view_update (self);
   gtk_widget_queue_draw (GTK_WIDGET (self));
 }
+
+
+void
+photos_image_view_set_zoom (PhotosImageView *self, gdouble zoom)
+{
+  g_return_if_fail (PHOTOS_IS_IMAGE_VIEW (self));
+}
diff --git a/src/photos-image-view.h b/src/photos-image-view.h
index 0ba8708..3d211a1 100644
--- a/src/photos-image-view.h
+++ b/src/photos-image-view.h
@@ -43,6 +43,8 @@ gdouble             photos_image_view_get_zoom           (PhotosImageView *self)
 
 void                photos_image_view_set_node           (PhotosImageView *self, GeglNode *node);
 
+void                photos_image_view_set_zoom           (PhotosImageView *self, gdouble zoom);
+
 G_END_DECLS
 
 #endif /* PHOTOS_IMAGE_VIEW_H */


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