gui/fading-label: Rewrite using PangoLayout directly

Instead of an internal label widget, store the text and the PangoLayout
directly, and only render them. Cache as much as possible to avoid
font reshaping.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/765>
This commit is contained in:
Georges Basile Stavracas Neto
2026-05-19 19:25:25 -03:00
parent 601acef508
commit f40c2cb0e9
3 changed files with 146 additions and 84 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (GcalFadingLabel, gcal_fading_label, GCAL, FADING_LABEL, GtkWidget)
const gchar *gcal_fading_label_get_label (GcalFadingLabel *self);
void gcal_fading_label_set_label (GcalFadingLabel *self,
const gchar *gcal_fading_label_get_text (GcalFadingLabel *self);
void gcal_fading_label_set_text (GcalFadingLabel *self,
const gchar *label);
gfloat gcal_fading_label_get_align (GcalFadingLabel *self);
void gcal_fading_label_set_align (GcalFadingLabel *self,