[f-spot] replace Log.DebugFormat by Log.Debug



commit 20cbabe91e8c3e281221d7be440797d637d0ca55
Author: Stephane Delcroix <stephane delcroix org>
Date:   Tue Jun 23 11:58:17 2009 +0200

    replace Log.DebugFormat by Log.Debug

 dpap-sharp/DPAPService/DPAPService.cs              |    2 +-
 .../Exporters/FacebookExport/FacebookExport.cs     |    2 +-
 .../ApplicationCentricCertificatePolicy.cs         |    2 +-
 .../Exporters/TabbloExport/TabbloExportModel.cs    |    2 +-
 extensions/Services/BeagleService/BeagleService.cs |    2 +-
 extensions/Tools/MergeDb/MergeDb.cs                |    4 +-
 src/ControlOverlay.cs                              |    4 +-
 src/Core/Tag.cs                                    |    2 +-
 src/Db.cs                                          |    2 +-
 src/Editors/Editor.cs                              |    4 +-
 src/FileImportBackend.cs                           |    2 +-
 src/GPhotoCamera.cs                                |    4 +-
 src/Imaging/ImageFile.cs                           |    2 +-
 src/Imaging/XmpFile.cs                             |    2 +-
 src/Jobs/CalculateHashJob.cs                       |    4 +-
 src/MainWindow.cs                                  |    2 +-
 src/PhotoLoader.cs                                 |    2 +-
 src/PhotoStore.cs                                  |    4 +-
 src/PhotoView.cs                                   |    2 +-
 src/Query/LogicalTerm.cs                           |    2 +-
 src/QueuedSqliteDatabase.cs                        |    2 +-
 src/Texture.cs                                     |    8 ++--
 src/ThumbnailCache.cs                              |    2 +-
 src/TimeAdaptor.cs                                 |    4 +-
 src/Updater.cs                                     |    2 +-
 src/Utils/Cache.cs                                 |    2 +-
 src/Utils/Unix.cs                                  |    2 +-
 src/Widgets/Filmstrip.cs                           |    2 +-
 src/Widgets/FindBar.cs                             |   32 ++++++++++----------
 src/Widgets/IconView.cs                            |    4 +-
 src/Widgets/PanZoom.cs                             |    2 +-
 src/Widgets/ScalingIconView.cs                     |    2 +-
 src/Widgets/Sidebar.cs                             |    2 +-
 src/XmpTagsImporter.cs                             |    2 +-
 src/main.cs                                        |    4 +-
 35 files changed, 62 insertions(+), 62 deletions(-)
---
diff --git a/dpap-sharp/DPAPService/DPAPService.cs b/dpap-sharp/DPAPService/DPAPService.cs
index 9403359..56e5b5f 100644
--- a/dpap-sharp/DPAPService/DPAPService.cs
+++ b/dpap-sharp/DPAPService/DPAPService.cs
@@ -179,7 +179,7 @@ namespace DPAP {
 					try {
 						BeagleNotifier.SendUpdate (item as Photo);
 					} catch (Exception e) {
-						Log.DebugFormat ("BeagleNotifier.SendUpdate failed with {0}", e.Message);
+						Log.Debug ("BeagleNotifier.SendUpdate failed with {0}", e.Message);
 					}
 			}
 #endif
diff --git a/extensions/Exporters/FacebookExport/FacebookExport.cs b/extensions/Exporters/FacebookExport/FacebookExport.cs
index bedd98c..b41c56e 100644
--- a/extensions/Exporters/FacebookExport/FacebookExport.cs
+++ b/extensions/Exporters/FacebookExport/FacebookExport.cs
@@ -80,7 +80,7 @@ namespace FSpot.Exporter.Facebook
 			string keyring;
 			try {
 				keyring = Ring.GetDefaultKeyring();
-				Log.DebugFormat ("Got default keyring {0}", keyring);
+				Log.Debug ("Got default keyring {0}", keyring);
 			} catch (Exception e) {
 				Log.DebugException (e);
 				return false;
diff --git a/extensions/Exporters/TabbloExport/ApplicationCentricCertificatePolicy.cs b/extensions/Exporters/TabbloExport/ApplicationCentricCertificatePolicy.cs
index 6a320c3..f5abfd7 100644
--- a/extensions/Exporters/TabbloExport/ApplicationCentricCertificatePolicy.cs
+++ b/extensions/Exporters/TabbloExport/ApplicationCentricCertificatePolicy.cs
@@ -62,7 +62,7 @@ namespace FSpotTabbloExport {
 		                                   WebRequest request,
 						   int problem)
 		{
-			Log.DebugFormat ("Checking validation result for {0}: "
+			Log.Debug ("Checking validation result for {0}: "
 					+ "problem={1}",
 					request.RequestUri, problem);
 
diff --git a/extensions/Exporters/TabbloExport/TabbloExportModel.cs b/extensions/Exporters/TabbloExport/TabbloExportModel.cs
index bba25dc..c178d83 100644
--- a/extensions/Exporters/TabbloExport/TabbloExportModel.cs
+++ b/extensions/Exporters/TabbloExport/TabbloExportModel.cs
@@ -276,7 +276,7 @@ namespace FSpotTabbloExport {
 				}
 			
 				if (1 <= items.Length) {
-					Log.DebugFormat ("{0} data found in "
+					Log.Debug ("{0} data found in "
 							+ "keyring",
 							KeyringItemName);
 					attrs =	items [0].Attributes;
diff --git a/extensions/Services/BeagleService/BeagleService.cs b/extensions/Services/BeagleService/BeagleService.cs
index 3d18be3..c858cfb 100644
--- a/extensions/Services/BeagleService/BeagleService.cs
+++ b/extensions/Services/BeagleService/BeagleService.cs
@@ -44,7 +44,7 @@ namespace BeagleService {
 					try {
 						BeagleNotifier.SendUpdate (item as Photo);
 					} catch (Exception e) {
-						Log.DebugFormat ("BeagleNotifier.SendUpdate failed with {0}", e.Message);
+						Log.Debug ("BeagleNotifier.SendUpdate failed with {0}", e.Message);
 					}
 			}
 #endif
diff --git a/extensions/Tools/MergeDb/MergeDb.cs b/extensions/Tools/MergeDb/MergeDb.cs
index 1525c2a..da4b90d 100644
--- a/extensions/Tools/MergeDb/MergeDb.cs
+++ b/extensions/Tools/MergeDb/MergeDb.cs
@@ -198,7 +198,7 @@ namespace MergeDbExtension
 				foreach (string key in PathMap.Keys) {
 					string path = photo_path;
 					path = path.Replace (key, PathMap [key]);
-					Log.DebugFormat ("Replaced path {0}", path);
+					Log.Debug ("Replaced path {0}", path);
 					if (System.IO.File.Exists (path)) {
 						photo_path = path;
 						break;;
@@ -218,7 +218,7 @@ namespace MergeDbExtension
 					pfd.Dialog.Destroy ();
 					if (new_folder == null) //Skip
 						return;
-					Log.DebugFormat ("{0} maps to {1}", folder, new_folder);
+					Log.Debug ("{0} maps to {1}", folder, new_folder);
 
 					PathMap[folder] = new_folder;
 
diff --git a/src/ControlOverlay.cs b/src/ControlOverlay.cs
index b478e5e..51c92b4 100644
--- a/src/ControlOverlay.cs
+++ b/src/ControlOverlay.cs
@@ -167,7 +167,7 @@ namespace FSpot {
 
 		bool FadeToTarget ()
 		{
-			//Log.DebugFormat ("op {0}\ttarget{1}", opacity, target);
+			//Log.Debug ("op {0}\ttarget{1}", opacity, target);
 			Visible = (opacity > 0.05);
 			if (Math.Abs (target - opacity) < .05)
 				return false;
@@ -184,7 +184,7 @@ namespace FSpot {
 
 		bool FadeToTarget (double target)
 		{
-			//Log.DebugFormat ("FadeToTarget {0}", target);
+			//Log.Debug ("FadeToTarget {0}", target);
 			Realize ();
 			this.target = target;
 			fade.Start ();
diff --git a/src/Core/Tag.cs b/src/Core/Tag.cs
index 06bdc65..c9be25d 100644
--- a/src/Core/Tag.cs
+++ b/src/Core/Tag.cs
@@ -176,7 +176,7 @@ namespace FSpot
 
 		~Tag ()
 		{
-			Log.DebugFormat ("Finalizer called on {0}. Should be Disposed", GetType ());		
+			Log.Debug ("Finalizer called on {0}. Should be Disposed", GetType ());		
 			if (icon != null)
 				icon.Dispose ();
 			if (cached_icon != null)
diff --git a/src/Db.cs b/src/Db.cs
index 5ad854f..0e60988 100644
--- a/src/Db.cs
+++ b/src/Db.cs
@@ -274,7 +274,7 @@ public class Db : IDisposable {
 
 	~Db ()
 	{
-		Log.DebugFormat ("Finalizer called on {0}. Should be Disposed", GetType ());
+		Log.Debug ("Finalizer called on {0}. Should be Disposed", GetType ());
 		Dispose (false);
 	}
 
diff --git a/src/Editors/Editor.cs b/src/Editors/Editor.cs
index f2d3d65..6b1d6b8 100644
--- a/src/Editors/Editor.cs
+++ b/src/Editors/Editor.cs
@@ -84,7 +84,7 @@ namespace FSpot.Editors {
 		// A tool can be applied if it doesn't need a selection, or if it has one.
 		public bool CanBeApplied {
 			get {
-				Log.DebugFormat ("{0} can be applied? {1}", this, !NeedsSelection || (NeedsSelection && State.HasSelection));
+				Log.Debug ("{0} can be applied? {1}", this, !NeedsSelection || (NeedsSelection && State.HasSelection));
 				return !NeedsSelection || (NeedsSelection && State.HasSelection);
 			}
 		}
@@ -230,7 +230,7 @@ namespace FSpot.Editors {
 				width = (int) (iwidth / ratio);
 				height = (int) (iheight / ratio);
 			}
-			//Log.DebugFormat ("Preview size: Allocation: {0}x{1}, Input: {2}x{3}, Result: {4}x{5}", awidth, aheight, iwidth, iheight, width, height);
+			//Log.Debug ("Preview size: Allocation: {0}x{1}, Input: {2}x{3}, Result: {4}x{5}", awidth, aheight, iwidth, iheight, width, height);
 		}
 
 		public void Restore () {
diff --git a/src/FileImportBackend.cs b/src/FileImportBackend.cs
index e96a5db..194072b 100644
--- a/src/FileImportBackend.cs
+++ b/src/FileImportBackend.cs
@@ -75,7 +75,7 @@ public class FileImportBackend : ImportBackend {
 
 	private void GetListing (System.IO.DirectoryInfo dirinfo, System.IO.FileInfo [] files, bool recurse)
 	{
-		Log.DebugFormat ("Scanning {0} for new photos", dirinfo.FullName);
+		Log.Debug ("Scanning {0} for new photos", dirinfo.FullName);
 		List<Uri> existing_entries = new List<Uri> ();
 
 		foreach (Photo p in store.Query (new Uri (dirinfo.FullName)))
diff --git a/src/GPhotoCamera.cs b/src/GPhotoCamera.cs
index e9ed492..2bce7d1 100644
--- a/src/GPhotoCamera.cs
+++ b/src/GPhotoCamera.cs
@@ -70,11 +70,11 @@ public class GPhotoCamera
 
 		
 		string path  = camera_list.GetValue (selected_camera__camera_list_index);
-		Log.DebugFormat ("Testing gphoto path = {0}", path);
+		Log.Debug ("Testing gphoto path = {0}", path);
 		selected_camera__port_info_list_index = port_info_list.LookupPath (path);
 
 		port_info = port_info_list.GetInfo (selected_camera__port_info_list_index);
-		Log.DebugFormat ("PortInfo {0}, {1}", port_info.Name, port_info.Path);
+		Log.Debug ("PortInfo {0}, {1}", port_info.Name, port_info.Path);
 
 		camera.SetPortInfo (port_info);
 	}
diff --git a/src/Imaging/ImageFile.cs b/src/Imaging/ImageFile.cs
index 9674ae4..3d99ce1 100644
--- a/src/Imaging/ImageFile.cs
+++ b/src/Imaging/ImageFile.cs
@@ -28,7 +28,7 @@ namespace FSpot {
 		
 		protected Stream Open ()
 		{
-			Log.DebugFormat ("open uri = {0}", uri.ToString ());
+			Log.Debug ("open uri = {0}", uri.ToString ());
 //			if (uri.IsFile)
 //				return new FileStream (uri.LocalPath, FileMode.Open);
 			return new GLib.GioStream (GLib.FileFactory.NewForUri (uri).Read (null));
diff --git a/src/Imaging/XmpFile.cs b/src/Imaging/XmpFile.cs
index 617145e..e34049a 100644
--- a/src/Imaging/XmpFile.cs
+++ b/src/Imaging/XmpFile.cs
@@ -37,7 +37,7 @@ namespace FSpot.Xmp {
 				store.Import (reader);
 				//Dump ();
 			} catch (System.Exception e) {
-				Log.DebugFormat ("Caught an exception :{0}", e.ToString ());
+				Log.Debug ("Caught an exception :{0}", e.ToString ());
 			}
 		}
 
diff --git a/src/Jobs/CalculateHashJob.cs b/src/Jobs/CalculateHashJob.cs
index dbd632e..46cbe11 100644
--- a/src/Jobs/CalculateHashJob.cs
+++ b/src/Jobs/CalculateHashJob.cs
@@ -35,14 +35,14 @@ namespace FSpot.Jobs {
 			System.Threading.Thread.Sleep (200);
 
 			uint photo_id = Convert.ToUInt32 (JobOptions);
-			Log.DebugFormat ("Calculating Hash {0}...", photo_id);
+			Log.Debug ("Calculating Hash {0}...", photo_id);
 
 			try {
 			 	Photo photo = FSpot.Core.Database.Photos.Get (Convert.ToUInt32 (photo_id)) as Photo;
 				FSpot.Core.Database.Photos.UpdateMD5Sum (photo);
 				return true;
 			} catch (System.Exception e) {
-			 	Log.DebugFormat ("Error Calculating Hash for photo {0}: {1}", JobOptions, e.Message);
+			 	Log.Debug ("Error Calculating Hash for photo {0}: {1}", JobOptions, e.Message);
 			}
 			return false;
 		}
diff --git a/src/MainWindow.cs b/src/MainWindow.cs
index 651cbb7..3e3402a 100644
--- a/src/MainWindow.cs
+++ b/src/MainWindow.cs
@@ -1660,7 +1660,7 @@ public class MainWindow {
 
 	public void ImportCamera (string camera_device)
 	{
-		Log.DebugFormat ("ImportCamera {0}", camera_device);
+		Log.Debug ("ImportCamera {0}", camera_device);
 		GPhotoCamera cam = new GPhotoCamera();
 
 		try {
diff --git a/src/PhotoLoader.cs b/src/PhotoLoader.cs
index 34d0e1b..c4a6604 100644
--- a/src/PhotoLoader.cs
+++ b/src/PhotoLoader.cs
@@ -51,7 +51,7 @@ namespace FSpot {
 		{			
 			using (Gdk.Pixbuf thumbnail = ThumbnailCache.Default.GetThumbnailForUri (uri)) {
 				if (pixbuf != null && thumbnail != null && !ThumbnailFactory.ThumbnailIsValid (thumbnail, uri)) {
-					Log.DebugFormat ("regenerating thumbnail for {0}", uri);
+					Log.Debug ("regenerating thumbnail for {0}", uri);
 					FSpot.ThumbnailGenerator.Default.Request (uri, 0, 256, 256);
 				}
 			}
diff --git a/src/PhotoStore.cs b/src/PhotoStore.cs
index 847b382..c584c50 100644
--- a/src/PhotoStore.cs
+++ b/src/PhotoStore.cs
@@ -71,7 +71,7 @@ public class PhotoStore : DbStore<Photo> {
 			try {
 				thumbnail = ((FSpot.IThumbnailContainer)img).GetEmbeddedThumbnail ();
 			} catch (Exception e) {
-				Log.DebugFormat ("Exception while loading embedded thumbail {0}", e.ToString ());
+				Log.Debug ("Exception while loading embedded thumbail {0}", e.ToString ());
 			}
 		}
 
@@ -930,7 +930,7 @@ public class PhotoStore : DbStore<Photo> {
 
 	public Photo [] Query (System.Uri uri)
 	{
-		Log.DebugFormat ("Query Uri {0}", uri);
+		Log.Debug ("Query Uri {0}", uri);
 		return Query (new DbCommand (
 			"SELECT id, "			+
 				"time, "			+
diff --git a/src/PhotoView.cs b/src/PhotoView.cs
index 43453a8..d4ec27e 100644
--- a/src/PhotoView.cs
+++ b/src/PhotoView.cs
@@ -319,7 +319,7 @@ namespace FSpot {
 
 		~PhotoView ()
 		{
-			FSpot.Utils.Log.DebugFormat ("Finalizer called on {0}. Should be Disposed", GetType ());		
+			FSpot.Utils.Log.Debug ("Finalizer called on {0}. Should be Disposed", GetType ());		
 			Dispose (false);	
 		}
 
diff --git a/src/Query/LogicalTerm.cs b/src/Query/LogicalTerm.cs
index 28b7f3e..9a4640c 100644
--- a/src/Query/LogicalTerm.cs
+++ b/src/Query/LogicalTerm.cs
@@ -62,7 +62,7 @@ namespace FSpot.Query
 
 		~TagTerm ()
 		{
-			Log.DebugFormat ("Finalizer called on {0}. Should be Disposed", GetType ());
+			Log.Debug ("Finalizer called on {0}. Should be Disposed", GetType ());
 			if (tag != null)
 				tag.Dispose ();
 		}
diff --git a/src/QueuedSqliteDatabase.cs b/src/QueuedSqliteDatabase.cs
index df1b27d..b8374af 100644
--- a/src/QueuedSqliteDatabase.cs
+++ b/src/QueuedSqliteDatabase.cs
@@ -110,7 +110,7 @@ namespace Banshee.Database
 
         ~QueuedSqliteDatabase ()
         {
-            Log.DebugFormat ("Finalizer called on {0}. Should be Disposed", GetType ());
+            Log.Debug ("Finalizer called on {0}. Should be Disposed", GetType ());
             Dispose (false);
         }
         
diff --git a/src/Texture.cs b/src/Texture.cs
index c0d9b1e..64fd4fb 100644
--- a/src/Texture.cs
+++ b/src/Texture.cs
@@ -88,7 +88,7 @@ namespace FSpot {
 			int max_size;
 			Gl.glGetIntegerv (Gl.GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB, out max_size);
 			float scale = (float)Math.Min (1.0, max_size / (double) Math.Max (width, height));
-			//Log.DebugFormat ("max texture size {0} scaling to {1}", max_size, scale);
+			//Log.Debug ("max texture size {0} scaling to {1}", max_size, scale);
 			
 			if (surface.DataPtr == IntPtr.Zero)
 				throw new TextureException ("Surface has no data");
@@ -102,7 +102,7 @@ namespace FSpot {
 				int swidth = (int)(width * scale);
 				int sheight = (int) (height * scale);
 				tmp = Marshal.AllocHGlobal (swidth * sheight * 4);
-				//LogDebugFormat ("scaling image {0} x {1}", swidth, sheight);
+				//LogDebug ("scaling image {0} x {1}", swidth, sheight);
 
 				Glu.gluScaleImage (Gl.GL_BGRA,
 						  width,
@@ -141,10 +141,10 @@ namespace FSpot {
 
 		void Close ()
 		{
-			//Log.DebugFormat ("Disposing {0} IsTexture {1}", texture_id, Gl.glIsTexture (texture_id));
+			//Log.Debug ("Disposing {0} IsTexture {1}", texture_id, Gl.glIsTexture (texture_id));
 			int [] ids = new int [] { texture_id };
 			Gl.glDeleteTextures (1, ids);
-			//Log.DebugFormat ("Done Disposing {0}", ids [0]);
+			//Log.Debug ("Done Disposing {0}", ids [0]);
 		}
 
 		public void Dispose ()
diff --git a/src/ThumbnailCache.cs b/src/ThumbnailCache.cs
index ccbb873..1910bdc 100644
--- a/src/ThumbnailCache.cs
+++ b/src/ThumbnailCache.cs
@@ -109,7 +109,7 @@ public class ThumbnailCache : IDisposable {
 
 	~ThumbnailCache ()
 	{
-		Log.DebugFormat ("Finalizer called on {0}. Should be Disposed", GetType ());		
+		Log.Debug ("Finalizer called on {0}. Should be Disposed", GetType ());		
 		foreach (object item in pixbuf_mru) {
 			Thumbnail thumb = item as Thumbnail;
 			pixbuf_hash.Remove (thumb.uri);
diff --git a/src/TimeAdaptor.cs b/src/TimeAdaptor.cs
index 5460ffe..77c86de 100644
--- a/src/TimeAdaptor.cs
+++ b/src/TimeAdaptor.cs
@@ -124,7 +124,7 @@ namespace FSpot {
 			int max_year = endyear;
 
 			if (year < min_year || year > max_year) {
-				Log.DebugFormat ("TimeAdaptor.IndexFromDate year out of range[{1},{2}]: {0}", year, min_year, max_year);
+				Log.Debug ("TimeAdaptor.IndexFromDate year out of range[{1},{2}]: {0}", year, min_year, max_year);
 				return 0;
 			}
 
@@ -138,7 +138,7 @@ namespace FSpot {
 			int max_year = endyear;
 		
 			if (year < min_year || year > max_year) {
-				Log.DebugFormat ("TimeAdaptor.IndexFromPhoto year out of range[{1},{2}]: {0}", year, min_year, max_year);
+				Log.Debug ("TimeAdaptor.IndexFromPhoto year out of range[{1},{2}]: {0}", year, min_year, max_year);
 				return 0;
 			}
 
diff --git a/src/Updater.cs b/src/Updater.cs
index 648a2e4..eedc967 100644
--- a/src/Updater.cs
+++ b/src/Updater.cs
@@ -675,7 +675,7 @@ namespace FSpot.Database {
 			{
 				code ();
 				
-				Log.DebugFormat ("Updated database from version {0} to {1}",
+				Log.Debug ("Updated database from version {0} to {1}",
 						db_version.Value,
 						Version.ToString ());
 
diff --git a/src/Utils/Cache.cs b/src/Utils/Cache.cs
index aabc6a5..7663fc2 100644
--- a/src/Utils/Cache.cs
+++ b/src/Utils/Cache.cs
@@ -152,7 +152,7 @@ namespace FSpot.Utils
 
 		~DisposableCache ()
 		{
-			Log.DebugFormat ("Finalizer called on {0}. Should be Disposed", GetType ());		
+			Log.Debug ("Finalizer called on {0}. Should be Disposed", GetType ());		
 			Clear ();	
 		}
 	}
diff --git a/src/Utils/Unix.cs b/src/Utils/Unix.cs
index cfd670f..0ba09ce 100644
--- a/src/Utils/Unix.cs
+++ b/src/Utils/Unix.cs
@@ -54,7 +54,7 @@ namespace FSpot.Utils {
 		public static void Touch (string filename)
 		{
 			if (NativeMethods.UTime (filename, IntPtr.Zero) != 0)
-				Log.DebugFormat ("touch on {0} failed", filename);
+				Log.Debug ("touch on {0} failed", filename);
 		}
 	}
 }
diff --git a/src/Widgets/Filmstrip.cs b/src/Widgets/Filmstrip.cs
index cc46316..57a5555 100644
--- a/src/Widgets/Filmstrip.cs
+++ b/src/Widgets/Filmstrip.cs
@@ -567,7 +567,7 @@ namespace FSpot.Widgets
 
 		~Filmstrip ()
 		{
-			Log.DebugFormat ("Finalizer called on {0}. Should be Disposed", GetType ());		
+			Log.Debug ("Finalizer called on {0}. Should be Disposed", GetType ());		
 			Dispose (false);
 		}
 			
diff --git a/src/Widgets/FindBar.cs b/src/Widgets/FindBar.cs
index 99c059e..4e29e47 100644
--- a/src/Widgets/FindBar.cs
+++ b/src/Widgets/FindBar.cs
@@ -84,7 +84,7 @@ namespace FSpot.Widgets {
 
 		private void HandleEntryTextInserted (object sender, TextInsertedArgs args)
 		{
-			//Log.DebugFormat ("inserting {0}, ( = {1}  ) = {2}", args.Text, open_parens, close_parens);
+			//Log.Debug ("inserting {0}, ( = {1}  ) = {2}", args.Text, open_parens, close_parens);
 
 			//int start = args.Position - args.Length;
 
@@ -114,7 +114,7 @@ namespace FSpot.Widgets {
 		private void HandleEntryTextDeleted (object sender, TextDeletedArgs args)
 		{
 			int length = args.EndPos - args.StartPos;
-			//Log.DebugFormat ("start {0} end {1} len {2} last {3}", args.StartPos, args.EndPos, length, last_entry_text);
+			//Log.Debug ("start {0} end {1} len {2} last {3}", args.StartPos, args.EndPos, length, last_entry_text);
 			string txt = last_entry_text.Substring (args.StartPos, length);
 
 			for (int i = 0; i < txt.Length; i++) {
@@ -202,9 +202,9 @@ namespace FSpot.Widgets {
 		private static void PrintGroup (GroupCollection groups, string name)
 		{
 			Group group = groups [name];
-			Log.DebugFormat ("Name: {2} (success = {1}) group: {0}", group, group.Success, name);
+			Log.Debug ("Name: {2} (success = {1}) group: {0}", group, group.Success, name);
 			foreach (Capture capture in group.Captures) {
-				Log.DebugFormat ("  Have capture: {0}", capture);
+				Log.Debug ("  Have capture: {0}", capture);
 			}
 		}
 
@@ -223,7 +223,7 @@ namespace FSpot.Widgets {
 
 			string indent = String.Format ("{0," + depth*2 + "}", " ");
 
-			//Log.DebugFormat (indent + "Have text: {0}", txt);
+			//Log.Debug (indent + "Have text: {0}", txt);
 
 			// Match the query the user typed against our regular expression
 			Match match = term_regex.Match (txt);
@@ -254,7 +254,7 @@ namespace FSpot.Widgets {
 			}
 
 			if (match.Groups ["Terms"].Captures.Count == 1 && match.Groups["NotTerm"].Captures.Count != 1) {
-				//Log.DebugFormat (indent + "Unbreakable term: {0}", match.Groups ["Terms"].Captures [0]);
+				//Log.Debug (indent + "Unbreakable term: {0}", match.Groups ["Terms"].Captures [0]);
 				string literal;
 				bool is_negated = false;
 				Tag tag = null;
@@ -312,7 +312,7 @@ namespace FSpot.Widgets {
 						subterm = subterm.Remove (0, 1);
 					}
 
-					//Log.DebugFormat (indent + "Breaking subterm apart: {0}", subterm);
+					//Log.Debug (indent + "Breaking subterm apart: {0}", subterm);
 
 					if (!ConstructQuery (us, depth + 1, subterm, negated))
 						return false;
@@ -330,7 +330,7 @@ namespace FSpot.Widgets {
 						subterm = subterm.Remove (0, 1);
 					}
 
-					//Log.DebugFormat (indent + "Breaking not subterm apart: {0}", subterm);
+					//Log.Debug (indent + "Breaking not subterm apart: {0}", subterm);
 
 					if (!ConstructQuery (us, depth + 1, subterm, true))
 						return false;
@@ -392,7 +392,7 @@ namespace FSpot.Widgets {
 
 			if (ParensValid () && ConstructQuery (null, 0, entry.Text)) {
 				if (RootTerm != null) {
-					//Log.DebugFormat("rootTerm = {0}", RootTerm);
+					//Log.Debug("rootTerm = {0}", RootTerm);
 					if (!(RootTerm is AndTerm)) {
 						// A little hacky, here to make sure the root term is a AndTerm which will
 						// ensure we handle the Hidden tag properly
@@ -401,7 +401,7 @@ namespace FSpot.Widgets {
 						root_term = root_parent;
 					}
 
-					//Log.DebugFormat("rootTerm = {0}", RootTerm);
+					//Log.Debug("rootTerm = {0}", RootTerm);
 					if (!(RootTerm is AndTerm)) {
 						// A little hacky, here to make sure the root term is a AndTerm which will
 						// ensure we handle the Hidden tag properly
@@ -409,7 +409,7 @@ namespace FSpot.Widgets {
 						RootTerm.Parent = root_parent;
 						root_term = root_parent;
 					}
-					//Log.DebugFormat ("condition = {0}", RootTerm.SqlCondition ());
+					//Log.Debug ("condition = {0}", RootTerm.SqlCondition ());
 					query.ExtraCondition = RootTerm.SqlCondition ();
 				} else {
 					query.ExtraCondition = null;
@@ -509,7 +509,7 @@ namespace FSpot.Widgets {
 			entry.DeleteText (entry.Position - transformed_key.Length, entry.Position);
 
 			string name = args.Model.GetValue (args.Iter, TextColumn) as string;
-			//Log.DebugFormat ("match selected..{0}", name);
+			//Log.Debug ("match selected..{0}", name);
 			int pos = entry.Position;
 
 			completing = true;
@@ -543,7 +543,7 @@ namespace FSpot.Widgets {
 					int start = 0;
 					for (int i = entry.Position - 1; i >= 0; i--) {
 						if (key [i] == ' ' || key [i] == ')' || key [i] == '(') {
-							//Log.DebugFormat ("have start break char at {0}", i);
+							//Log.Debug ("have start break char at {0}", i);
 							start = i + 1;
 							break;
 						}
@@ -557,7 +557,7 @@ namespace FSpot.Widgets {
 						}
 					}
 
-					//Log.DebugFormat ("start = {0} end = {1}", start, end);
+					//Log.Debug ("start = {0} end = {1}", start, end);
 
 					int len = end - start + 1;
 					if (len > 0 && start < last_key.Length)
@@ -565,7 +565,7 @@ namespace FSpot.Widgets {
 					else
 						transformed_key = String.Empty;
 				}
-				//Log.DebugFormat ("transformed key {0} into {1}", key, transformed_key);
+				//Log.Debug ("transformed key {0} into {1}", key, transformed_key);
 			}
 
 			if (transformed_key == String.Empty)
@@ -577,7 +577,7 @@ namespace FSpot.Widgets {
 			if (name == null || name.Length <= transformed_key.Length)
 				return false;
 
-			//Log.DebugFormat ("entered = {0} compared to {1}", transformed_key, name);
+			//Log.Debug ("entered = {0} compared to {1}", transformed_key, name);
 			return (String.Compare (transformed_key, name.Substring(0, transformed_key.Length), true) == 0);
 		}
 	}
diff --git a/src/Widgets/IconView.cs b/src/Widgets/IconView.cs
index 8882187..45f0f63 100644
--- a/src/Widgets/IconView.cs
+++ b/src/Widgets/IconView.cs
@@ -1033,7 +1033,7 @@ namespace FSpot.Widgets
 			i ++) {
 				int cell_x = start_cell_x;
 
-				//Log.DebugFormat ("Drawing row {0}", start_cell_row + i);
+				//Log.Debug ("Drawing row {0}", start_cell_row + i);
 				for (int j = 0; j < num_cols && cell_num + j < collection.Count; j ++) {
 					DrawCell (cell_num + j, area);
 					cell_x += cell_width;
@@ -1082,7 +1082,7 @@ namespace FSpot.Widgets
 
 			Gdk.Region offscreen = new Gdk.Region ();
 			/*
-			Log.DebugFormat ("step ({0}, {1}) allocation ({2},{3},{4},{5})",
+			Log.Debug ("step ({0}, {1}) allocation ({2},{3},{4},{5})",
 					xstep, ystep, Hadjustment.Value, Vadjustment.Value,
 					Allocation.Width, Allocation.Height);
 			*/
diff --git a/src/Widgets/PanZoom.cs b/src/Widgets/PanZoom.cs
index c6e9eb5..5c88f84 100644
--- a/src/Widgets/PanZoom.cs
+++ b/src/Widgets/PanZoom.cs
@@ -139,7 +139,7 @@ namespace FSpot.Widgets {
 				//w.GdkWindow.Scroll (- (n_x - pan_x), - (n_y - pan_y));
 				w.QueueDraw ();
 				w.GdkWindow.ProcessUpdates (false);
-				//Log.DebugFormat ("{0} {1} elapsed", DateTime.UtcNow, DateTime.UtcNow - start);
+				//Log.Debug ("{0} {1} elapsed", DateTime.UtcNow, DateTime.UtcNow - start);
 			}
 			pan_x = n_x;
 			pan_y = n_y;
diff --git a/src/Widgets/ScalingIconView.cs b/src/Widgets/ScalingIconView.cs
index 02dc0f2..bdeb19a 100644
--- a/src/Widgets/ScalingIconView.cs
+++ b/src/Widgets/ScalingIconView.cs
@@ -13,7 +13,7 @@ namespace FSpot.Widgets {
 		
 		protected override void UpdateLayout ()
 		{
-			//Log.DebugFormat ("in update layout {0}", Allocation.ToString ());
+			//Log.Debug ("in update layout {0}", Allocation.ToString ());
 
 			int num_thumbnails;
 			if (collection != null)
diff --git a/src/Widgets/Sidebar.cs b/src/Widgets/Sidebar.cs
index 9120b06..2b6a98c 100644
--- a/src/Widgets/Sidebar.cs
+++ b/src/Widgets/Sidebar.cs
@@ -221,7 +221,7 @@ namespace FSpot.Widgets {
 
 		private void HandleCanSelectChanged (object sender, EventArgs args)
 		{
-			//Log.DebugFormat ("Can select changed for {0} to {1}", sender, (sender as SidebarPage).CanSelect);
+			//Log.Debug ("Can select changed for {0} to {1}", sender, (sender as SidebarPage).CanSelect);
 		}
 
 		public void AppendPage (Widget widget, string label, string icon_name)
diff --git a/src/XmpTagsImporter.cs b/src/XmpTagsImporter.cs
index b3e227e..a458e59 100644
--- a/src/XmpTagsImporter.cs
+++ b/src/XmpTagsImporter.cs
@@ -200,7 +200,7 @@ namespace FSpot.Xmp {
 							tmp_ui = System.Convert.ToUInt32 (l.Value);
 						} catch {
 							// Set rating to 0, and continue
-							Log.DebugFormat ("Found illegal rating >{0}< in predicate {1}. Rating cleared",
+							Log.Debug ("Found illegal rating >{0}< in predicate {1}. Rating cleared",
 										 l.Value, stmt.Predicate.Uri);
 							tmp_ui = 0;
 						}
diff --git a/src/main.cs b/src/main.cs
index 8d8c221..5ed43ea 100644
--- a/src/main.cs
+++ b/src/main.cs
@@ -160,7 +160,7 @@ namespace FSpot
 						break;
 					if (args [i].StartsWith ("--trace"))
 						break;
-					Log.DebugFormat ("Unparsed argument >>{0}<<", args [i]);
+					Log.Debug ("Unparsed argument >>{0}<<", args [i]);
 					break;
 				}
 			}
@@ -336,7 +336,7 @@ namespace FSpot
 					else if (max_size == 0)
 						Log.Warning ("maximum_size is 0 (tin-hat mode), not overriding");
 					else if (max_size < size) {
-						Log.DebugFormat ("Setting maximum_size to a saner value ({0}MB), according to your db size", size);
+						Log.Debug ("Setting maximum_size to a saner value ({0}MB), according to your db size", size);
 						Preferences.Set (Preferences.GSD_THUMBS_MAX_SIZE, size);
 					}
 				}



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