[gthumb] Use gfile-based function to report error with catalog deletion



commit 48061d0e8e4103c907a59bdfd5855e9591573005
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Wed Apr 22 11:04:24 2009 -0400

    Use gfile-based function to report error with catalog deletion
---
 libgthumb/file-utils.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/libgthumb/file-utils.c b/libgthumb/file-utils.c
index 07aab15..37ac955 100644
--- a/libgthumb/file-utils.c
+++ b/libgthumb/file-utils.c
@@ -1935,16 +1935,10 @@ delete_catalog_dir (const char  *full_path,
 		return TRUE;
 
 	if (gerror != NULL) {
-		const char *rel_path;
-		char       *base_path;
 		char       *utf8_path;
 		const char *details;
 
-		base_path = get_catalog_full_path (NULL);
-		rel_path = full_path + strlen (base_path) + 1;
-		g_free (base_path);
-
-		utf8_path = get_utf8_display_name_from_uri (rel_path);
+		utf8_path = basename_for_display (full_path);
 
 		switch (gnome_vfs_result_from_errno ()) {
 		case GNOME_VFS_ERROR_DIRECTORY_NOT_EMPTY:



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