[gtk+/wip/baedert/gtkimageview: 150/160] imageview: Comments
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview: 150/160] imageview: Comments
- Date: Sun, 5 Jun 2016 14:35:17 +0000 (UTC)
commit 9fe59e0d3154ce90186dc639e5b83d58488533cb
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]