[libhandy] avatar: Draw frame after background and not before
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy] avatar: Draw frame after background and not before
- Date: Thu, 29 Oct 2020 11:46:24 +0000 (UTC)
commit 8b49dbc2fb060d679b576a55ad4a20bb21a8063f
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sat Oct 3 05:04:40 2020 +0500
avatar: Draw frame after background and not before
src/hdy-avatar.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/hdy-avatar.c b/src/hdy-avatar.c
index 71b015f0..cf73ce03 100644
--- a/src/hdy-avatar.c
+++ b/src/hdy-avatar.c
@@ -364,8 +364,6 @@ hdy_avatar_draw (GtkWidget *widget,
set_class_contrasted (HDY_AVATAR (widget), size);
- gtk_render_frame (context, cr, x, y, size, size);
-
update_custom_image (self);
if (self->round_image) {
@@ -373,11 +371,14 @@ hdy_avatar_draw (GtkWidget *widget,
cairo_paint (cr);
gtk_render_background (context, cr, x, y, size, size);
+ gtk_render_frame (context, cr, x, y, size, size);
return FALSE;
}
gtk_render_background (context, cr, x, y, size, size);
+ gtk_render_frame (context, cr, x, y, size, size);
+
ensure_pango_layout (HDY_AVATAR (widget));
if (self->show_initials && self->layout != NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]