diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-01-27 21:50:00 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-01-27 21:50:00 -0500 |
commit | ef7433e7f1d2778854c8f6058dc093c87541db31 (patch) | |
tree | 22904a42d6622ea2990a8d0449c5a773b0209388 | |
parent | b5c09b9e39d66b53baee996db4b479ff884da873 (diff) | |
download | gtk+-ef7433e7f1d2778854c8f6058dc093c87541db31.tar.gz |
Make the places in the file chooser come up with a reasonable size
-rw-r--r-- | gtk/gtkfilechooserdefault.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index ed4f717361..fc89dc9081 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -3701,10 +3701,13 @@ shortcuts_list_create (GtkFileChooserDefault *impl) NULL); renderer = gtk_cell_renderer_text_new (); - g_object_set (renderer, "ellipsize", PANGO_ELLIPSIZE_END, NULL); - g_signal_connect (renderer, "edited", + g_object_set (renderer, + "width-chars", 12, + "ellipsize", PANGO_ELLIPSIZE_END, + NULL); + g_signal_connect (renderer, "edited", G_CALLBACK (shortcuts_edited), impl); - g_signal_connect (renderer, "editing-canceled", + g_signal_connect (renderer, "editing-canceled", G_CALLBACK (shortcuts_editing_canceled), impl); gtk_tree_view_column_pack_start (column, renderer, TRUE); gtk_tree_view_column_set_attributes (column, renderer, |