forked from AuroraMiddleware/gtk
file chooser: Don't ellipsize "Other Locations"
It just looks wrong if the file chooser comes up with "Other Locations" ellipsized. Treat it like the other fixed entries. We only want to ellipsize bookmarks, because their length is unpredictable.
This commit is contained in:
parent
a7a934a60c
commit
98a36955fe
@ -185,10 +185,11 @@ gtk_sidebar_row_set_property (GObject *object,
|
||||
|
||||
case PROP_SECTION_TYPE:
|
||||
self->section_type = g_value_get_int (value);
|
||||
if (self->section_type != SECTION_COMPUTER)
|
||||
gtk_label_set_ellipsize (GTK_LABEL (self->label_widget), PANGO_ELLIPSIZE_END);
|
||||
else
|
||||
if (self->section_type == SECTION_COMPUTER ||
|
||||
self->section_type == 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:
|
||||
|
Loading…
Reference in New Issue
Block a user