[nautilus/wip/antoniof/properties-fixes: 3/3] properties-window: Allow plugin item values to wrap
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/properties-fixes: 3/3] properties-window: Allow plugin item values to wrap
- Date: Wed, 7 Sep 2022 12:47:13 +0000 (UTC)
commit af73ba698806340852ca3a9ae559dab91b0d0168
Author: António Fernandes <antoniof gnome org>
Date: Wed Sep 7 13:43:12 2022 +0100
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
src/nautilus-properties-window.c | 6 ++++--
1 file 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]