forked from AuroraMiddleware/gtk
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:
parent
40c429c2cb
commit
3923ba1605
@ -2328,6 +2328,8 @@ name_cell_data_func (GtkCellLayout *layout,
|
||||
|
||||
if (type == ROW_TYPE_CURRENT_FOLDER)
|
||||
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
|
||||
g_object_set (cell, "ellipsize", PANGO_ELLIPSIZE_NONE, NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user