From d8adcb5b4809ef0441284c436058b1d3711884bf Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Fri, 9 Jun 2023 21:21:09 -0700 Subject: [PATCH] libsysprof-gtk: reduce chances of cell causing column width change --- src/libsysprof-gtk/sysprof-progress-cell.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libsysprof-gtk/sysprof-progress-cell.c b/src/libsysprof-gtk/sysprof-progress-cell.c index 77748502..51b399b3 100644 --- a/src/libsysprof-gtk/sysprof-progress-cell.c +++ b/src/libsysprof-gtk/sysprof-progress-cell.c @@ -217,14 +217,16 @@ sysprof_progress_cell_init (SysprofProgressCell *self) g_snprintf (percent, sizeof percent, "%6.2lf%%", .0); self->label = g_object_new (GTK_TYPE_LABEL, - "halign", GTK_ALIGN_END, + "xalign", 1.f, "valign", GTK_ALIGN_CENTER, "label", percent, + "width-chars", 7, NULL); self->alt_label = g_object_new (GTK_TYPE_LABEL, - "halign", GTK_ALIGN_END, + "xalign", 1.f, "valign", GTK_ALIGN_CENTER, "label", percent, + "width-chars", 7, NULL); gtk_widget_add_css_class (GTK_WIDGET (self->alt_label), "in-progress"); self->trough = g_object_new (ADW_TYPE_BIN,