summaryrefslogtreecommitdiff
path: root/src/nautilus-properties-window.c
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2022-09-07 13:43:12 +0100
committerAntónio Fernandes <antoniof@gnome.org>2022-10-22 11:33:51 +0000
commitf4c823eadb36087b73bd874662a00105338f2a30 (patch)
tree416b2805a3eeb59c9fdd2a4beb5a765743c1267d /src/nautilus-properties-window.c
parent42648767773b2df1a27108c211e1779e33564d7d (diff)
downloadnautilus-f4c823eadb36087b73bd874662a00105338f2a30.tar.gz
properties-window: Allow plugin item values to wrap
Also add margins otherwise we clash with the row borders. Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/896
Diffstat (limited to 'src/nautilus-properties-window.c')
-rw-r--r--src/nautilus-properties-window.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index c415f2f15..43663ab0b 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -925,7 +925,8 @@ create_extension_group_row (NautilusPropertiesItem *item,
gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE);
adw_action_row_add_prefix (ADW_ACTION_ROW (row), box);
- gtk_widget_set_valign (box, GTK_ALIGN_CENTER);
+ gtk_widget_set_margin_top (box, 7);
+ gtk_widget_set_margin_bottom (box, 7);
gtk_box_append (GTK_BOX (box), name_label);
gtk_box_append (GTK_BOX (box), value_label);
@@ -937,7 +938,8 @@ create_extension_group_row (NautilusPropertiesItem *item,
g_object_bind_property (item, "value", value_label, "label", G_BINDING_SYNC_CREATE);
gtk_widget_set_halign (value_label, GTK_ALIGN_START);
- gtk_label_set_ellipsize (GTK_LABEL (value_label), PANGO_ELLIPSIZE_END);
+ gtk_label_set_wrap (GTK_LABEL (value_label), TRUE);
+ gtk_label_set_wrap_mode (GTK_LABEL (value_label), PANGO_WRAP_WORD_CHAR);
gtk_label_set_selectable (GTK_LABEL (value_label), TRUE);
return row;