summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-02-03 09:41:21 +0000
committerMatthias Clasen <mclasen@redhat.com>2023-02-03 09:41:21 +0000
commita13ddcb67b3ccc37efb4bf605ca97087d2ff1ea5 (patch)
treec65d09563f8021c0ee7d215fbb1d9082f7daa039
parentd228bae36525122205fe0dfc5f499ed216abc470 (diff)
parent463f12a3bb42c60e2b86093f443d9d14541c9852 (diff)
downloadgtk+-a13ddcb67b3ccc37efb4bf605ca97087d2ff1ea5.tar.gz
Merge branch 'filechooser-sidebar' into 'main'
placessidebar: Make all rows ellipsize Closes #4710 See merge request GNOME/gtk!5471
-rw-r--r--gtk/gtksidebarrow.c5
-rw-r--r--gtk/ui/gtksidebarrow.ui1
2 files changed, 1 insertions, 5 deletions
diff --git a/gtk/gtksidebarrow.c b/gtk/gtksidebarrow.c
index 15224b03b8..37cf167c94 100644
--- a/gtk/gtksidebarrow.c
+++ b/gtk/gtksidebarrow.c
@@ -274,11 +274,6 @@ gtk_sidebar_row_set_property (GObject *object,
case PROP_SECTION_TYPE:
self->section_type = g_value_get_enum (value);
- if (self->section_type == GTK_PLACES_SECTION_COMPUTER ||
- self->section_type == GTK_PLACES_SECTION_OTHER_LOCATIONS)
- gtk_label_set_ellipsize (GTK_LABEL (self->label_widget), PANGO_ELLIPSIZE_NONE);
- else
- gtk_label_set_ellipsize (GTK_LABEL (self->label_widget), PANGO_ELLIPSIZE_END);
break;
case PROP_PLACE_TYPE:
diff --git a/gtk/ui/gtksidebarrow.ui b/gtk/ui/gtksidebarrow.ui
index 046a1af08d..3521704472 100644
--- a/gtk/ui/gtksidebarrow.ui
+++ b/gtk/ui/gtksidebarrow.ui
@@ -25,6 +25,7 @@
<object class="GtkLabel" id="label_widget">
<property name="hexpand">1</property>
<property name="xalign">0</property>
+ <property name="ellipsize">end</property>
<style>
<class name="sidebar-label"/>
</style>