[libadwaita/libadwaita-1-1] avatar: Update initials after setting custom-image



commit e3131d8e09233414189503f6051d08efa6fa1da9
Author: Marco Melorio <marco melorio protonmail com>
Date:   Sun Apr 17 14:58:34 2022 +0200

    avatar: Update initials after setting custom-image
    
    Fixes #458
    
    
    (cherry picked from commit 99808c8c32b062a756e15ba76952b2bb124f2194)

 src/adw-avatar.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/adw-avatar.c b/src/adw-avatar.c
index f657bb58..ee75900d 100644
--- a/src/adw-avatar.c
+++ b/src/adw-avatar.c
@@ -661,6 +661,7 @@ adw_avatar_set_custom_image (AdwAvatar    *self,
     gtk_widget_remove_css_class (self->gizmo, "image");
   }
 
+  update_initials (self);
   update_visibility (self);
 
   g_object_notify_by_pspec (G_OBJECT (self), props[PROP_CUSTOM_IMAGE]);


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