Revision: 1880
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1880&view=rev
Author:   zas_
Date:     2009-12-19 12:49:19 +0000 (Sat, 19 Dec 2009)

Log Message:
-----------
Store sort parameters in appropriate variables.

Modified Paths:
--------------
    trunk/src/view_dir_list.c

Modified: trunk/src/view_dir_list.c
===================================================================
--- trunk/src/view_dir_list.c   2009-12-10 17:48:43 UTC (rev 1879)
+++ trunk/src/view_dir_list.c   2009-12-19 12:49:19 UTC (rev 1880)
@@ -138,11 +138,13 @@
        GList *old_list;
        gboolean ret;
        FileData *fd;
+       SortType sort_type = SORT_NAME;
+       gboolean sort_ascend = TRUE;
 
        old_list = VDLIST(vd)->list;
 
        ret = filelist_read(vd->dir_fd, NULL, &VDLIST(vd)->list);
-       VDLIST(vd)->list = filelist_sort(VDLIST(vd)->list, SORT_NAME, TRUE);
+       VDLIST(vd)->list = filelist_sort(VDLIST(vd)->list, sort_type, 
sort_ascend);
 
        /* add . and .. */
 
@@ -215,7 +217,7 @@
                                        }
                                else
                                        {
-                                       match = 
filelist_sort_compare_filedata_full(fd, old_fd, SORT_NAME, TRUE);
+                                       match = 
filelist_sort_compare_filedata_full(fd, old_fd, sort_type, sort_ascend);
 
                                        if (match == 0) g_warning("multiple fd 
for the same path");
                                        }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to