[balsa/wip/gtk4: 40/351] GTK_IMAGE_PIXBUF has been removed



commit b866cb8abd67fd71aa492bc5a3edfb7e4a889b83
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Oct 24 11:55:27 2017 -0400

    GTK_IMAGE_PIXBUF has been removed

 src/balsa-mime-widget-image.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/balsa-mime-widget-image.c b/src/balsa-mime-widget-image.c
index f653171..29aee3b 100644
--- a/src/balsa-mime-widget-image.c
+++ b/src/balsa-mime-widget-image.c
@@ -181,8 +181,8 @@ img_check_size(GtkImage ** widget_p)
         return FALSE;
     }
 
-    if (gtk_image_get_storage_type(widget) == GTK_IMAGE_PIXBUF)
-       curr_w = gdk_pixbuf_get_width(gtk_image_get_pixbuf(widget));
+    if (gtk_image_get_storage_type(widget) == GTK_IMAGE_SURFACE)
+       curr_w = cairo_image_surface_get_width(gtk_image_get_surface(widget));
     else
        curr_w = 0;
 


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