Mercurial > geeqie
comparison src/view_dir_tree.c @ 785:548b193c084c
Use uft8_collate_key() to sort utf8 strings.
Modify file_data_set_path() to sync collate keys and file_data_pool
on path change.
Partially fix bug 1959854.
author | zas_ |
---|---|
date | Thu, 05 Jun 2008 08:41:02 +0000 |
parents | d6a7fb4b8e7c |
children | c90eb9539f6e |
comparison
equal
deleted
inserted
replaced
784:16b3a5c8aedc | 785:548b193c084c |
---|---|
881 NodeData *ndb; | 881 NodeData *ndb; |
882 | 882 |
883 gtk_tree_model_get(store, a, DIR_COLUMN_POINTER, &nda, -1); | 883 gtk_tree_model_get(store, a, DIR_COLUMN_POINTER, &nda, -1); |
884 gtk_tree_model_get(store, b, DIR_COLUMN_POINTER, &ndb, -1); | 884 gtk_tree_model_get(store, b, DIR_COLUMN_POINTER, &ndb, -1); |
885 | 885 |
886 return CASE_SORT(nda->fd->name, ndb->fd->name); | 886 if (options->file_sort.case_sensitive) |
887 return strcmp(nda->fd->collate_key_name, nda->fd->collate_key_name); | |
888 else | |
889 return strcmp(nda->fd->collate_key_name_nocase, nda->fd->collate_key_name_nocase); | |
887 } | 890 } |
888 | 891 |
889 /* | 892 /* |
890 *---------------------------------------------------------------------------- | 893 *---------------------------------------------------------------------------- |
891 * core | 894 * core |