diff options
| author | Přemysl Eric Janouch <p@janouch.name> | 2023-04-14 07:11:49 +0200 | 
|---|---|---|
| committer | Přemysl Eric Janouch <p@janouch.name> | 2023-04-14 07:31:03 +0200 | 
| commit | a012011631a04c79e283b494acf91706bfb48f43 (patch) | |
| tree | 4dbba4f9d09998b6cf71daa0cf657d21b7862066 /fiv-sidebar.c | |
| parent | 05ac3a065198378653d0b94dc25946c71d4d23a1 (diff) | |
| download | fiv-a012011631a04c79e283b494acf91706bfb48f43.tar.gz fiv-a012011631a04c79e283b494acf91706bfb48f43.tar.xz fiv-a012011631a04c79e283b494acf91706bfb48f43.zip  | |
Deduplicate file information structures
Diffstat (limited to 'fiv-sidebar.c')
| -rw-r--r-- | fiv-sidebar.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/fiv-sidebar.c b/fiv-sidebar.c index f688720..6525067 100644 --- a/fiv-sidebar.c +++ b/fiv-sidebar.c @@ -357,10 +357,10 @@ update_location(FivSidebar *self)  		gtk_container_add(GTK_CONTAINER(self->listbox), row);  	gsize len = 0; -	const FivIoModelEntry *subdirs = +	FivIoModelEntry *const *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); +		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);  | 
