Make the places in the file chooser come up with a reasonable size

This commit is contained in:
Matthias Clasen 2011-01-27 21:50:00 -05:00
parent b5c09b9e39
commit ef7433e7f1

View File

@ -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,