[f-spot: 1/2] Photo.Name should always be unescaped.



commit 5127d5dc3d648534221d5148ad94d2233451d1f7
Author: Anton Keks <anton azib net>
Date:   Sun Aug 2 00:15:51 2009 +0300

    Photo.Name should always be unescaped.
    Removing escaping from InfoBox.

 src/Core/Photo.cs      |    2 +-
 src/Widgets/InfoBox.cs |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Core/Photo.cs b/src/Core/Photo.cs
index 7ec4ea3..adf5f8d 100644
--- a/src/Core/Photo.cs
+++ b/src/Core/Photo.cs
@@ -139,7 +139,7 @@ namespace FSpot
 		}
 	
 		public string Name {
-			get { return System.IO.Path.GetFileName (VersionUri (OriginalVersionId).AbsolutePath); }
+			get { return Uri.UnescapeDataString (System.IO.Path.GetFileName (VersionUri (OriginalVersionId).AbsolutePath)); }
 		}
 	
 		//This property no longer keeps a 'directory' path, but the logical container for the image, like:
diff --git a/src/Widgets/InfoBox.cs b/src/Widgets/InfoBox.cs
index 6e08da6..da45e8b 100644
--- a/src/Widgets/InfoBox.cs
+++ b/src/Widgets/InfoBox.cs
@@ -477,7 +477,7 @@ namespace FSpot.Widgets
 			UpdateHistogram ();
 
 			if (show_name) {
-				name_value_label.Text = photo.Name != null ? System.Uri.UnescapeDataString(photo.Name) : String.Empty;
+				name_value_label.Text = photo.Name != null ? photo.Name : String.Empty;
 			}
 			name_label.Visible = show_name;	
 			name_value_label.Visible = show_name;



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