[libhandy/libhandy-1-2] avatar: Fix getting pixbuf from avatar
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/libhandy-1-2] avatar: Fix getting pixbuf from avatar
- Date: Thu, 13 May 2021 16:07:33 +0000 (UTC)
commit 90c05f712216a3b5b0a890c092a7b06bc2ced12b
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Mon May 10 17:35:33 2021 +0530
avatar: Fix getting pixbuf from avatar
The widget should have "image" style if custom image is set,
otherwise all we get is a solid background
(cherry picked from commit 84501dc69b3a1a247bd68e9b022f405e72895d0b)
src/hdy-avatar.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/hdy-avatar.c b/src/hdy-avatar.c
index 2148f455..3d58591b 100644
--- a/src/hdy-avatar.c
+++ b/src/hdy-avatar.c
@@ -1248,6 +1248,7 @@ hdy_avatar_draw_to_pixbuf (HdyAvatar *self,
gdk_pixbuf_get_width (self->round_image) != scaled_size) {
pixbuf_from_icon = load_icon_sync (get_icon (self), scaled_size);
custom_image = update_custom_image (pixbuf_from_icon, NULL, scaled_size);
+ gtk_style_context_add_class (context, "image");
} else {
custom_image = update_custom_image (NULL, self->round_image, scaled_size);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]