[gthumb] location chooser: get the display name and icon without I/O
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] location chooser: get the display name and icon without I/O
- Date: Wed, 11 Dec 2019 16:50:03 +0000 (UTC)
commit ebf282fdee05ffbba590c213572414333339e445
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Dec 7 14:49:24 2019 +0100
location chooser: get the display name and icon without I/O
gthumb/gth-location-chooser.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gthumb/gth-location-chooser.c b/gthumb/gth-location-chooser.c
index 8cd58a09..a13cbaa7 100644
--- a/gthumb/gth-location-chooser.c
+++ b/gthumb/gth-location-chooser.c
@@ -25,6 +25,7 @@
#include <glib.h>
#include <glib/gprintf.h>
#include <gtk/gtk.h>
+#include "gio-utils.h"
#include "glib-utils.h"
#include "gth-file-source.h"
#include "gth-location-chooser.h"
@@ -511,9 +512,10 @@ update_location_list (gpointer user_data)
GFile *file = scan->data;
GFileInfo *info;
- info = gth_file_source_get_file_info (self->priv->file_source, file,
GFILE_DISPLAY_ATTRIBUTES);
+ info = _g_file_get_info_for_display (file);
if (info == NULL)
continue;
+
add_file_source_entries (self,
file,
g_file_info_get_display_name (info),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]