[gtk+/wip/baedert/gtkimageview: 241/255] imageview: Comments



commit 9ad850f913266fb54c8462016bbeb949fa10238f
Author: Timm Bäder <mail baedert org>
Date:   Sat Mar 19 12:21:58 2016 +0100

    imageview: Comments

 gtk/gtkimageview.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkimageview.c b/gtk/gtkimageview.c
index 4209fae..c4476d5 100644
--- a/gtk/gtkimageview.c
+++ b/gtk/gtkimageview.c
@@ -2386,6 +2386,7 @@ gtk_image_view_set_pixbuf (GtkImageView    *image_view,
 
   image = gtk_surface_image_new_from_pixbuf (pixbuf, scale_factor);
 
+  /* Will ref the image */
   gtk_image_view_set_abstract_image (image_view, GTK_ABSTRACT_IMAGE (image));
 }
 
@@ -2410,6 +2411,7 @@ gtk_image_view_set_surface (GtkImageView    *image_view,
 
   image = gtk_surface_image_new (surface);
 
+  /* Will ref the image */
   gtk_image_view_replace_image (image_view, GTK_ABSTRACT_IMAGE (image));
 }
 
@@ -2447,5 +2449,6 @@ gtk_image_view_set_abstract_image (GtkImageView     *image_view,
   g_return_if_fail (GTK_IS_IMAGE_VIEW (image_view));
   g_return_if_fail (GTK_IS_ABSTRACT_IMAGE (abstract_image));
 
+  /* Will ref the image */
   gtk_image_view_replace_image (image_view, abstract_image);
 }


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