-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi...

attached is a patch to make Thunar sub-sort on the filename if
both compare values are equal.



jens


- --
Jens Luedicke
web: http://perldude.de

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC7njjiCvkc4H0gTERAoimAJ4oJc+IZlLwgOf4ITL8J7rSeJlr5QCeI/PP
M6wO7tdKvfMJILQBW5/7tBE=
=6IJF
-----END PGP SIGNATURE-----
Index: thunar-list-model.c
===================================================================
--- thunar-list-model.c (revision 16427)
+++ thunar-list-model.c (working copy)
@@ -1322,6 +1322,9 @@
     return -1;
   else if (date_a > date_b)
     return 1;
+  else
+    return sort_by_name(a,b);
+  
   return 0;
 }
 
@@ -1350,6 +1353,9 @@
     return -1;
   else if (date_a > date_b)
     return 1;
+  else
+    return sort_by_name(a,b);
+
   return 0;
 }
 
@@ -1382,6 +1388,9 @@
   result = strcasecmp (thunar_vfs_mime_info_get_name (info_a),
                        thunar_vfs_mime_info_get_name (info_b));
 
+  if (result == 0)
+    result = sort_by_name(a,b);
+
   thunar_vfs_mime_info_unref (info_b);
   thunar_vfs_mime_info_unref (info_a);
 
@@ -1414,6 +1423,9 @@
     return -1;
   else if (mode_a > mode_b)
     return 1;
+  else
+    return sort_by_name(a,b);
+
   return 0;
 }
 
@@ -1442,6 +1454,9 @@
     return -1;
   else if (size_a > size_b)
     return 1;
+  else
+    return sort_by_name(a,b);
+
   return 0;
 }
 
@@ -1474,6 +1489,9 @@
   result = strcasecmp (thunar_vfs_mime_info_get_comment (info_a),
                        thunar_vfs_mime_info_get_comment (info_b));
 
+  if (result == 0)
+    result = sort_by_name(a,b);
+
   thunar_vfs_mime_info_unref (info_b);
   thunar_vfs_mime_info_unref (info_a);
 
_______________________________________________
Thunar-dev mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/thunar-dev

Reply via email to