mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-gtk: reduce chances of cell causing column width change
This commit is contained in:
@ -217,14 +217,16 @@ sysprof_progress_cell_init (SysprofProgressCell *self)
|
|||||||
g_snprintf (percent, sizeof percent, "%6.2lf%%", .0);
|
g_snprintf (percent, sizeof percent, "%6.2lf%%", .0);
|
||||||
|
|
||||||
self->label = g_object_new (GTK_TYPE_LABEL,
|
self->label = g_object_new (GTK_TYPE_LABEL,
|
||||||
"halign", GTK_ALIGN_END,
|
"xalign", 1.f,
|
||||||
"valign", GTK_ALIGN_CENTER,
|
"valign", GTK_ALIGN_CENTER,
|
||||||
"label", percent,
|
"label", percent,
|
||||||
|
"width-chars", 7,
|
||||||
NULL);
|
NULL);
|
||||||
self->alt_label = g_object_new (GTK_TYPE_LABEL,
|
self->alt_label = g_object_new (GTK_TYPE_LABEL,
|
||||||
"halign", GTK_ALIGN_END,
|
"xalign", 1.f,
|
||||||
"valign", GTK_ALIGN_CENTER,
|
"valign", GTK_ALIGN_CENTER,
|
||||||
"label", percent,
|
"label", percent,
|
||||||
|
"width-chars", 7,
|
||||||
NULL);
|
NULL);
|
||||||
gtk_widget_add_css_class (GTK_WIDGET (self->alt_label), "in-progress");
|
gtk_widget_add_css_class (GTK_WIDGET (self->alt_label), "in-progress");
|
||||||
self->trough = g_object_new (ADW_TYPE_BIN,
|
self->trough = g_object_new (ADW_TYPE_BIN,
|
||||||
|
|||||||
Reference in New Issue
Block a user