[gthumb: 1/9] use the uri as file key instead of the path that can be null



commit e52fa0d3fbc0b78338eb4c02797b2c4fc2095bb3
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Jan 28 10:30:03 2011 +0100

    use the uri as file key instead of the path that can be null

 gthumb/gth-icon-cache.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gthumb/gth-icon-cache.c b/gthumb/gth-icon-cache.c
index f115f67..f4c25f1 100644
--- a/gthumb/gth-icon-cache.c
+++ b/gthumb/gth-icon-cache.c
@@ -100,12 +100,12 @@ _gth_icon_cache_get_icon_key (GIcon *icon)
 
 		file = g_file_icon_get_file (G_FILE_ICON (icon));
 		if (file != NULL) {
-			char *filename;
+			char *uri;
 
-			filename = g_file_get_path (file);
-			key = get_static_string (filename);
+			uri = g_file_get_uri (file);
+			key = get_static_string (uri);
 
-			g_free (filename);
+			g_free (uri);
 			g_object_unref (file);
 		}
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]