It should be realized in the gtk application. gtktreeview -- gtktreeviewcolumn --- gtkcellrenderertext is flexible enough to realize this requrement.
The following patch limit the defau;lt width of filename column to 32 char. diff -Npur nau-old/src/file-manager/fm-list-view.c nau-new/src/file-manager/fm-list-view.c --- nau-old/src/file-manager/fm-list-view.c 2009-07-22 11:35:14.191823592 +0800 +++ nau-new/src/file-manager/fm-list-view.c 2009-07-22 11:35:47.379883167 +0800 @@ -1325,6 +1325,7 @@ filename_cell_data_func (GtkTreeViewColu g_object_set (G_OBJECT (renderer), "text", text, "underline", underline, + "width-chars", 32, NULL); g_free (text); } >>> John Keller <gn...@johnkeller.com> 07/21/09 5:32 下午 >>> Ralf_Fleckenstein wrote: > Hello, > how can I setup the Nautilus-File-Manager in this way that it(the > filemanager) doesn't takes the length of the longest filename in a > folder as the reference for the column-width ? > > Just the "Name"-Column is on the desktop, the rest of columns like Size, > extension are not vissibile. > By the way, I can adjust this problem just for one session, after the > Nautilus-restart the previous values will be restored. Hi, Ralf. I'm not a developer, but I seem to remember that this behavior isn't caused by Nautilus but the GTK tree view control that it uses. Some time back, I seem to remember a discussion on this list with GTK developers. They were planning ways to improve the auto-size behavior of the columns, and potentially make it possible to set size constraints. I believe that the first item was at least partially implemented, but I don't know about the second. Allowing size constraints would address your question about manually setting a size and then saving that preference. Even if GTK simply allowed Nautilus to programmatically specify a maximum total size of all columns would at least avoid the horizontal scrollbar in Nautilus windows, and the repeated manual adjustments that it involves. I'm reviving this old thread because it went unanswered, but I'm very interested as well. Do any of the maintainers/developers know about this, either in Nautilus or in GTK land? - John -- nautilus-list mailing list nautilus-list@gnome.org http://mail.gnome.org/mailman/listinfo/nautilus-list
-- nautilus-list mailing list nautilus-list@gnome.org http://mail.gnome.org/mailman/listinfo/nautilus-list