Avoid overlong file chooser buttons
When bookmarks are long, the file chooser button would grow too much. This can be avoided by ellipsizing. Patch by Ritesh Khadgaray, https://bugzilla.gnome.org/show_bug.cgi?id=672220
This commit is contained in:
@ -2328,6 +2328,8 @@ name_cell_data_func (GtkCellLayout *layout,
|
|||||||
|
|
||||||
if (type == ROW_TYPE_CURRENT_FOLDER)
|
if (type == ROW_TYPE_CURRENT_FOLDER)
|
||||||
g_object_set (cell, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
|
g_object_set (cell, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
|
||||||
|
else if (type == ROW_TYPE_BOOKMARK || type == ROW_TYPE_SHORTCUT)
|
||||||
|
g_object_set (cell, "ellipsize", PANGO_ELLIPSIZE_MIDDLE, NULL);
|
||||||
else
|
else
|
||||||
g_object_set (cell, "ellipsize", PANGO_ELLIPSIZE_NONE, NULL);
|
g_object_set (cell, "ellipsize", PANGO_ELLIPSIZE_NONE, NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user