[gtk+/wip/matthiasc/filechooser] file chooser: Give the location column more space



commit 17f20357f24d30b4a773447b8c069403315f9382
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jun 27 12:05:04 2015 -0400

    file chooser: Give the location column more space
    
    Giving it 15 characters makes it at least fit "Documents" without
    ellipsizing.

 gtk/gtkfilechooserwidget.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index f58ae2a..6e45554 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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]