[Nautilus-list] [PATCH] for bug 76191 (Sorting by "Size" not working in List view)





Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/nautilus/ChangeLog,v
retrieving revision 1.5181
diff -p -u -r1.5181 ChangeLog
--- ChangeLog	5 Apr 2002 18:25:54 -0000	1.5181
+++ ChangeLog	7 Apr 2002 18:04:47 -0000
@@ -1,3 +1,9 @@
+2002-04-06  David Emory Watson  <dwatson cs ucr edu>
+
+	* src/file-manager/fm-list-model.c:
+	(fm_list_model_get_sort_column_id_from_sort_type): Size was incorrectly
+	returning name, bug 76191.
+
 2002-03-30  David Emory Watson  <dwatson cs ucr edu>
 
 	This fixes single click activation in the list view, bug 76197.
Index: src/file-manager/fm-list-model.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/file-manager/fm-list-model.c,v
retrieving revision 1.7
diff -p -u -r1.7 fm-list-model.c
--- src/file-manager/fm-list-model.c	11 Mar 2002 10:17:49 -0000	1.7
+++ src/file-manager/fm-list-model.c	7 Apr 2002 18:04:56 -0000
@@ -712,12 +712,12 @@ fm_list_model_get_sort_column_id_from_so
 	switch (sort_type) {
 	case NAUTILUS_FILE_SORT_NONE:
 		return -1;
-	case NAUTILUS_FILE_SORT_BY_SIZE:
+	case NAUTILUS_FILE_SORT_BY_DISPLAY_NAME:
 		return FM_LIST_MODEL_NAME_COLUMN;
 	case NAUTILUS_FILE_SORT_BY_TYPE:
 		return FM_LIST_MODEL_TYPE_COLUMN;
-	case NAUTILUS_FILE_SORT_BY_DISPLAY_NAME:
-		return FM_LIST_MODEL_NAME_COLUMN;
+	case NAUTILUS_FILE_SORT_BY_SIZE:
+		return FM_LIST_MODEL_SIZE_COLUMN;
 	case NAUTILUS_FILE_SORT_BY_MTIME:
 		return FM_LIST_MODEL_DATE_MODIFIED_COLUMN;
 	case NAUTILUS_FILE_SORT_BY_EMBLEMS:


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