summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-12-31 12:30:40 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-12-31 12:30:40 -0500
commit40a2910262339b005afc4472e30ac26a31fae516 (patch)
tree98a3f294076d07b6014685ed1e623126cb9f0431
parent188f9269b7e25847d4d50ba12c004f5da81aa352 (diff)
downloadgtk+-40a2910262339b005afc4472e30ac26a31fae516.tar.gz
inspector: Avoid super-wide window
Ellipsize values that can get long, to avoid forcing an excessively wide window.
-rw-r--r--gtk/inspector/general.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/inspector/general.c b/gtk/inspector/general.c
index 3b7f469522..288ebbb1fb 100644
--- a/gtk/inspector/general.c
+++ b/gtk/inspector/general.c
@@ -256,6 +256,8 @@ add_label_row (GtkInspectorGeneral *gen,
gtk_widget_set_halign (label, GTK_ALIGN_END);
gtk_widget_set_valign (label, GTK_ALIGN_BASELINE);
gtk_label_set_xalign (GTK_LABEL (label), 1.0);
+ gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
+ gtk_label_set_width_chars (GTK_LABEL (label), 25);
gtk_box_append (GTK_BOX (box), label);
row = gtk_list_box_row_new ();