diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-06-04 01:19:56 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-06-04 14:50:56 +0200 |
commit | 3ddb0cf20568b84e053b1608d22d55657e8ce5dd (patch) | |
tree | bea886fbc45e57838f74d3c0e64efe30c1580d98 /fiv.c | |
parent | efc13db66e890a712d8ffa7a2e4289a285137d60 (diff) | |
download | fiv-3ddb0cf20568b84e053b1608d22d55657e8ce5dd.tar.gz fiv-3ddb0cf20568b84e053b1608d22d55657e8ce5dd.tar.xz fiv-3ddb0cf20568b84e053b1608d22d55657e8ce5dd.zip |
Expose the mtime of the model's entries
Diffstat (limited to 'fiv.c')
-rw-r--r-- | fiv.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -702,8 +702,13 @@ on_model_files_changed(FivIoModel *model, G_GNUC_UNUSED gpointer user_data) { g_return_if_fail(model == g.model); + gsize len = 0; + const FivIoModelEntry *files = fiv_io_model_get_files(g.model, &len); g_ptr_array_free(g.files, TRUE); - g.files = fiv_io_model_get_files(g.model); + g.files = g_ptr_array_new_full(len, g_free); + for (gsize i = 0; i < len; i++) + g_ptr_array_add(g.files, g_strdup(files[i].uri)); + update_files_index(); gtk_widget_set_sensitive( |