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-sidebar.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-sidebar.c')
| -rw-r--r-- | fiv-sidebar.c | 9 | 
1 files changed, 5 insertions, 4 deletions
diff --git a/fiv-sidebar.c b/fiv-sidebar.c index e4bbd5d..bc96d03 100644 --- a/fiv-sidebar.c +++ b/fiv-sidebar.c @@ -241,14 +241,15 @@ update_location(FivSidebar *self)  	if ((row = create_row(self, location, "circle-filled-symbolic")))  		gtk_container_add(GTK_CONTAINER(self->listbox), row); -	GPtrArray *subdirs = fiv_io_model_get_subdirectories(self->model); -	for (guint i = 0; i < subdirs->len; i++) { -		GFile *file = g_file_new_for_uri(subdirs->pdata[i]); +	gsize len = 0; +	const FivIoModelEntry *subdirs = +		fiv_io_model_get_subdirs(self->model, &len); +	for (gsize i = 0; i < len; i++) { +		GFile *file = g_file_new_for_uri(subdirs[i].uri);  		if ((row = create_row(self, file, "go-down-symbolic")))  			gtk_container_add(GTK_CONTAINER(self->listbox), row);  		g_object_unref(file);  	} -	g_ptr_array_free(subdirs, TRUE);  }  static void  | 
