summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserwidget.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-06-27 12:05:04 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-07-04 00:29:24 -0400
commit710d193f91a33cda3229220358044fe6ec4ddbd4 (patch)
tree3aa8d5161733bc9ee3ba1022ea8972d31d40b683 /gtk/gtkfilechooserwidget.c
parent356f507059b4bc675262d8834616b5cd0be1de76 (diff)
downloadgtk+-710d193f91a33cda3229220358044fe6ec4ddbd4.tar.gz
file chooser: Give the location column more space
Giving it 15 characters makes it at least fit "Documents" without ellipsizing.
Diffstat (limited to 'gtk/gtkfilechooserwidget.c')
-rw-r--r--gtk/gtkfilechooserwidget.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 3df2d30eda..089fb9d92a 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -7140,7 +7140,11 @@ update_cell_renderer_attributes (GtkFileChooserWidget *impl)
column = gtk_tree_view_get_column (GTK_TREE_VIEW (priv->browse_files_tree_view), 3);
list = gtk_cell_layout_get_cells (GTK_CELL_LAYOUT (column));
renderer = list->data;
- g_object_set (renderer, "ellipsize", PANGO_ELLIPSIZE_START, NULL);
+ g_object_set (renderer,
+ "ellipsize", PANGO_ELLIPSIZE_START,
+ "width-chars", 15,
+ "max-width-chars", 30,
+ NULL);
gtk_tree_view_column_set_attributes (column, renderer,
"text", MODEL_COL_LOCATION_TEXT,
"sensitive", MODEL_COL_IS_SENSITIVE,