f-spot r4484 - in trunk/src: Core Filters



Author: sdelcroix
Date: Sun Oct 12 20:36:48 2008
New Revision: 4484
URL: http://svn.gnome.org/viewvc/f-spot?rev=4484&view=rev

Log:
fix some compilation warnings here and there

Modified:
   trunk/src/Core/PhotoChanges.cs
   trunk/src/Core/PhotosChanges.cs
   trunk/src/Filters/JpegFilter.cs
   trunk/src/Filters/OrientationFilter.cs
   trunk/src/Filters/ResizeFilter.cs

Modified: trunk/src/Core/PhotoChanges.cs
==============================================================================
--- trunk/src/Core/PhotoChanges.cs	(original)
+++ trunk/src/Core/PhotoChanges.cs	Sun Oct 12 20:36:48 2008
@@ -20,7 +20,7 @@
 			get { return VersionsAdded == null && VersionsRemoved == null && VersionsModified == null; }
 		}
 
-		public bool TagsChanged {
+		public override bool TagsChanged {
 			get { return TagsAdded == null && TagsRemoved == null; }
 		}
 

Modified: trunk/src/Core/PhotosChanges.cs
==============================================================================
--- trunk/src/Core/PhotosChanges.cs	(original)
+++ trunk/src/Core/PhotosChanges.cs	Sun Oct 12 20:36:48 2008
@@ -90,7 +90,7 @@
 			}
 		}
 		bool tags_changed = false;
-		public bool TagsChanged {
+		public virtual bool TagsChanged {
 			get { return tags_changed; }
 			private set { tags_changed = value; }
 		}

Modified: trunk/src/Filters/JpegFilter.cs
==============================================================================
--- trunk/src/Filters/JpegFilter.cs	(original)
+++ trunk/src/Filters/JpegFilter.cs	Sun Oct 12 20:36:48 2008
@@ -36,7 +36,7 @@
 			// even when the source is not a jpeg
 			string source = req.Current.LocalPath;
 
-			using (ImageFile img = ImageFile.Create (source)) {
+			using (ImageFile img = ImageFile.Create (req.Current)) {
 				if (img is JpegFile)
 					return false;
 

Modified: trunk/src/Filters/OrientationFilter.cs
==============================================================================
--- trunk/src/Filters/OrientationFilter.cs	(original)
+++ trunk/src/Filters/OrientationFilter.cs	Sun Oct 12 20:36:48 2008
@@ -20,7 +20,7 @@
 			System.Uri dest_uri = req.TempUri (System.IO.Path.GetExtension (source));
 			string dest = dest_uri.LocalPath;
 
-			using (ImageFile img = ImageFile.Create (source)) {
+			using (ImageFile img = ImageFile.Create (req.Current)) {
 				bool changed = false;
 				
 				if (img.Orientation != PixbufOrientation.TopLeft && img is JpegFile) {
@@ -45,7 +45,7 @@
 					
 					int width, height;
 	
-					using (jimg = ImageFile.Create (dest) as JpegFile) {
+					using (jimg = ImageFile.Create (dest_uri) as JpegFile) {
 						PixbufUtils.GetSize (dest, out width, out height);
 
 						jimg.SetOrientation (PixbufOrientation.TopLeft);

Modified: trunk/src/Filters/ResizeFilter.cs
==============================================================================
--- trunk/src/Filters/ResizeFilter.cs	(original)
+++ trunk/src/Filters/ResizeFilter.cs	Sun Oct 12 20:36:48 2008
@@ -43,7 +43,7 @@
 			System.Uri dest_uri = req.TempUri (System.IO.Path.GetExtension (source));
 			string dest = dest_uri.LocalPath;
 
-			using (ImageFile img = ImageFile.Create (source)) {
+			using (ImageFile img = ImageFile.Create (req.Current)) {
 
 				using (Pixbuf pixbuf = img.Load ()) {
 					if (pixbuf.Width < size && pixbuf.Height < size)



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