[gtk+/wip/baedert/gtkimageview: 217/228] imageview: Comments
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview: 217/228] imageview: Comments
- Date: Tue, 5 Jul 2016 18:48:53 +0000 (UTC)
commit 458096b2f6edf78f1aaafba3a89fc2042b73ac7a
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]