From 05b445f0ca6f0b9ae0f862b3c4bf08357783c25f Mon Sep 17 00:00:00 2001 From: Javier Goday Date: Sun, 26 Apr 2020 15:13:54 +0200 Subject: [PATCH] fix Gala.Utils.create_close_button and Gala.Utils.create_refresh_button (texture.set_size) (#784) --- lib/Utils.vala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Utils.vala b/lib/Utils.vala index 2a066023..01c54fd8 100644 --- a/lib/Utils.vala +++ b/lib/Utils.vala @@ -305,6 +305,7 @@ namespace Gala { Cogl.PixelFormat pixel_format = (pixbuf.get_has_alpha () ? Cogl.PixelFormat.RGBA_8888 : Cogl.PixelFormat.RGB_888); image.set_data (pixbuf.get_pixels (), pixel_format, pixbuf.width, pixbuf.height, pixbuf.rowstride); texture.set_content (image); + texture.set_size (pixbuf.width, pixbuf.height); #else texture.set_from_rgb_data (pixbuf.get_pixels (), pixbuf.get_has_alpha (), pixbuf.get_width (), pixbuf.get_height (), @@ -370,6 +371,7 @@ namespace Gala { Cogl.PixelFormat pixel_format = (pixbuf.get_has_alpha () ? Cogl.PixelFormat.RGBA_8888 : Cogl.PixelFormat.RGB_888); image.set_data (pixbuf.get_pixels (), pixel_format, pixbuf.width, pixbuf.height, pixbuf.rowstride); texture.set_content (image); + texture.set_size (pixbuf.width, pixbuf.height); #else texture.set_from_rgb_data (pixbuf.get_pixels (), pixbuf.get_has_alpha (), pixbuf.get_width (), pixbuf.get_height (),