[gthumb] do not add a entry point if already present
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] do not add a entry point if already present
- Date: Mon, 21 Feb 2011 20:15:19 +0000 (UTC)
commit 3a0a1a91030c2f6ea4eaf5db8702285e029b2d07
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Feb 21 21:10:54 2011 +0100
do not add a entry point if already present
[bug #627153]
gthumb/gth-file-source-vfs.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-file-source-vfs.c b/gthumb/gth-file-source-vfs.c
index 188b99e..e7fc7f3 100644
--- a/gthumb/gth-file-source-vfs.c
+++ b/gthumb/gth-file-source-vfs.c
@@ -102,6 +102,12 @@ gth_file_source_vfs_get_entry_points (GthFileSource *file_source)
continue;
file = g_mount_get_root (mount);
+
+ if (gth_file_data_list_find_file (list, file) != NULL) {
+ g_object_unref (file);
+ continue;
+ }
+
info = g_file_query_info (file, GFILE_BASIC_ATTRIBUTES ",access::*", G_FILE_QUERY_INFO_NONE, NULL, NULL);
icon = g_mount_get_icon (mount);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]