forked from AuroraMiddleware/gtk
placessidebar: Make all rows ellipsize
Otherwise, we end up with a single long row pushing the content of all the other rows off to the left, which is much worse than ellipsizing. Fixes: #4710
This commit is contained in:
parent
fb36c167e1
commit
c4ddf47d8f
@ -278,11 +278,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:
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user