[Nautilus-list] Maximum Columns Widths



Hi again,

in the list view there's a limit on the columns widths, which is very
inconvenient when dealing with long filenames (see Bug 45110). As I
don't see a point in having limits on the widths (at least filename,
type & emblems might have arbitrary long content), I propose the
following patch.
It removes the maximum width attribute from all columns except the
non-resizable icon column, and sets a consistent minimum (20) on all of
them.
Unfortunatly this triggers another bug: The horizontal scrollbar isn't
drawn/updated when the columns are resized beyond the width of the
window (This can be triggered without this patch though and works on
window resize).
If someone could give me a hint about the scrollbar handling in this
widget (and how to fix it), I would be a happy hacker.

Martin


Index: src/file-manager/fm-list-view.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/file-manager/fm-list-view.c,v
retrieving revision 1.148
diff -u -r1.148 fm-list-view.c
--- src/file-manager/fm-list-view.c	2001/11/09 02:05:52	1.148
+++ src/file-manager/fm-list-view.c	2001/12/05 12:57:39
@@ -2249,31 +2249,31 @@
 		fm_list_view_column_set (specification,
 					 "name", _("Name"),
 					 NAUTILUS_FILE_SORT_BY_DISPLAY_NAME,
-					 30, 170, 300, FALSE);
+					 20, 170, -1, FALSE);
 		break;
 	case 2:
 		fm_list_view_column_set (specification,
 					 "emblems", _("Emblems"),
 					 NAUTILUS_FILE_SORT_BY_EMBLEMS,
-					 20, 52, 300, FALSE);
+					 20, 52, -1, FALSE);
 		break;
 	case 3:
 		fm_list_view_column_set (specification,
 					 "size", _("Size"),
 					 NAUTILUS_FILE_SORT_BY_SIZE,
-					 20, 55, 80, TRUE);
+					 20, 55, -1, TRUE);
 		break;
 	case 4:
 		fm_list_view_column_set (specification,
 					 "type", _("Type"),
 					 NAUTILUS_FILE_SORT_BY_TYPE,
-					 20, 135, 200, FALSE);
+					 20, 135, -1, FALSE);
 		break;
 	case 5:
 		fm_list_view_column_set (specification,
 					 "date_modified", _("Date Modified"),
 					 NAUTILUS_FILE_SORT_BY_MTIME,
-					 30, 100, 200, FALSE);
+					 20, 100, -1, FALSE);
 		break;
 	default:
 		g_assert_not_reached ();






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