forked from AuroraMiddleware/gtk
inspector: Ellipsize in the object tree
We don't want a long label to blow up the width of the inspector window.
This commit is contained in:
parent
a07c030d02
commit
1b28353be5
@ -1066,6 +1066,7 @@ setup_name_cb (GtkSignalListItemFactory *factory,
|
||||
|
||||
label = gtk_label_new (NULL);
|
||||
gtk_label_set_width_chars (GTK_LABEL (label), 15);
|
||||
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
|
||||
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
|
||||
gtk_list_item_set_child (list_item, label);
|
||||
}
|
||||
@ -1092,7 +1093,8 @@ setup_label_cb (GtkSignalListItemFactory *factory,
|
||||
GtkWidget *label;
|
||||
|
||||
label = gtk_label_new (NULL);
|
||||
gtk_label_set_width_chars (GTK_LABEL (label), 15);
|
||||
gtk_label_set_width_chars (GTK_LABEL (label), 25);
|
||||
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
|
||||
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
|
||||
gtk_list_item_set_child (list_item, label);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user