diff options
author | ZenWalker <[email protected]> | 2016-06-10 10:41:11 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2016-06-10 10:41:11 +0200 |
commit | af154fdd494b90adae5be5783bb725194fcf1d6b (patch) | |
tree | 251b542943ba6cee52f117ba5737c54b47f16031 /src/file-data.h | |
parent | 25c3dccb52628440615f97c9877f7dacd37d6646 (diff) | |
download | engrampa-af154fdd494b90adae5be5783bb725194fcf1d6b.tar.bz2 engrampa-af154fdd494b90adae5be5783bb725194fcf1d6b.tar.xz |
use natural order when sorting by filename
file-roller commit:
https://git.gnome.org/browse/file-roller/commit/?id=8703609e95dcee3abbec39dea567137c7fff23e9
Fixes #143
Diffstat (limited to 'src/file-data.h')
-rw-r--r-- | src/file-data.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/file-data.h b/src/file-data.h index 60d81b6..84adcd6 100644 --- a/src/file-data.h +++ b/src/file-data.h @@ -40,13 +40,14 @@ typedef struct { gboolean dir; /* Whether this is a directory listed in the archive */ goffset dir_size; const char *content_type; - + /* Additional data. */ gboolean list_dir; /* Whether this entry is used to show * a directory. */ char *list_name; /* The string visualized in the list * view. */ + char *sort_key; /* Private data */ @@ -57,14 +58,15 @@ typedef struct { GType file_data_get_type (void); FileData * file_data_new (void); -FileData * file_data_copy (FileData *src); -void file_data_free (FileData *fdata); -void file_data_update_content_type (FileData *fdata); -gboolean file_data_is_dir (FileData *fdata); - -int file_data_compare_by_path (gconstpointer a, - gconstpointer b); -int find_path_in_file_data_array (GPtrArray *array, - const char *path); +FileData * file_data_copy (FileData *src); +void file_data_free (FileData *fdata); +void file_data_update_content_type (FileData *fdata); +gboolean file_data_is_dir (FileData *fdata); +void file_data_set_list_name (FileData *fdata, + const char *value); +int file_data_compare_by_path (gconstpointer a, + gconstpointer b); +int find_path_in_file_data_array (GPtrArray *array, + const char *path); #endif /* FILE_DATA_H */ |