diff options
author | Richard Hughes <richard@hughsie.com> | 2014-05-14 11:52:36 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-05-14 11:52:36 +0100 |
commit | 27aa46a227712e95f4369068df3f833e4854ad87 (patch) | |
tree | 2ee507e4629da724b83d76ed819cdc491241e730 /libappstream-glib/as-image.c | |
parent | 13f1b126a3ec00c7f199aeee9ee37f412a7337c9 (diff) | |
download | appstream-glib-27aa46a227712e95f4369068df3f833e4854ad87.tar.gz |
Update the image size when using as_image_set_pixbuf()
Diffstat (limited to 'libappstream-glib/as-image.c')
-rw-r--r-- | libappstream-glib/as-image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-glib/as-image.c b/libappstream-glib/as-image.c index 9df7616..9cb6a08 100644 --- a/libappstream-glib/as-image.c +++ b/libappstream-glib/as-image.c @@ -321,6 +321,8 @@ as_image_set_pixbuf (AsImage *image, GdkPixbuf *pixbuf) data, len); } priv->pixbuf = g_object_ref (pixbuf); + priv->width = gdk_pixbuf_get_width (pixbuf); + priv->height = gdk_pixbuf_get_height (pixbuf); } /** |