file chooser: Give the location column more space
authorMatthias Clasen <mclasen@redhat.com>
Sat, 27 Jun 2015 16:05:04 +0000 (12:05 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 4 Jul 2015 04:29:24 +0000 (00:29 -0400)
Giving it 15 characters makes it at least fit "Documents" without
ellipsizing.

gtk/gtkfilechooserwidget.c

index 3df2d30eda0176968067cad0445f5e5ebcbad818..089fb9d92abc810f01c15bdb2115877ae49e1d15 100644 (file)
@@ -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,