[gtk+/wip/baedert/gtkimageview: 119/135] imageview: Comments



commit f9595e35c2e06bc88d74a2a960647e6d9031e3e6
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 7989266..bc936a9 100644
--- a/gtk/gtkimageview.c
+++ b/gtk/gtkimageview.c
@@ -2393,6 +2393,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));
 }
 
@@ -2417,6 +2418,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));
 }
 
@@ -2454,5 +2456,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]