[gnome-builder/gnome-builder-43] plugins/buildui: ellipsize text for build stages
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-43] plugins/buildui: ellipsize text for build stages
- Date: Wed, 5 Oct 2022 03:17:44 +0000 (UTC)
commit 22e6d5b97ee8868e8c195d91602f2461a164717f
Author: Christian Hergert <chergert redhat com>
Date: Tue Oct 4 20:17:31 2022 -0700
plugins/buildui: ellipsize text for build stages
src/plugins/buildui/gbp-buildui-stage-row.c | 7 ++-----
src/plugins/buildui/gbp-buildui-stage-row.ui | 5 ++++-
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/plugins/buildui/gbp-buildui-stage-row.c b/src/plugins/buildui/gbp-buildui-stage-row.c
index a935b0e9c..304393bb3 100644
--- a/src/plugins/buildui/gbp-buildui-stage-row.c
+++ b/src/plugins/buildui/gbp-buildui-stage-row.c
@@ -30,7 +30,7 @@ struct _GbpBuilduiStageRow
IdePipelineStage *stage;
- GtkLabel *label;
+ GtkInscription *label;
};
enum {
@@ -87,7 +87,7 @@ gbp_buildui_stage_row_set_stage (GbpBuilduiStageRow *self,
if (name == NULL)
name = G_OBJECT_TYPE_NAME (stage);
- gtk_label_set_label (self->label, name);
+ gtk_inscription_set_text (self->label, name);
g_signal_connect_object (stage,
"notify::completed",
@@ -102,9 +102,6 @@ gbp_buildui_stage_row_set_stage (GbpBuilduiStageRow *self,
G_CONNECT_SWAPPED);
g_object_bind_property (stage, "disabled", self, "sensitive", G_BINDING_DEFAULT);
-#if 0
- g_object_bind_property (stage, "active", self->label, "bold", G_BINDING_DEFAULT);
-#endif
gbp_buildui_stage_row_notify_completed (self, NULL, stage);
}
diff --git a/src/plugins/buildui/gbp-buildui-stage-row.ui b/src/plugins/buildui/gbp-buildui-stage-row.ui
index 1408292fa..53ee681f2 100644
--- a/src/plugins/buildui/gbp-buildui-stage-row.ui
+++ b/src/plugins/buildui/gbp-buildui-stage-row.ui
@@ -5,12 +5,15 @@
<object class="GtkBox">
<property name="orientation">horizontal</property>
<child>
- <object class="GtkLabel" id="label">
+ <object class="GtkInscription" id="label">
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="margin-start">9</property>
<property name="margin-bottom">9</property>
<property name="xalign">0.0</property>
+ <property name="hexpand">true</property>
+ <property name="text-overflow">ellipsize-end</property>
+ <property name="nat-lines">1</property>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]