f-spot r4639 - in trunk: . src/Platform/Gnome



Author: sdelcroix
Date: Wed Nov 26 14:37:39 2008
New Revision: 4639
URL: http://svn.gnome.org/viewvc/f-spot?rev=4639&view=rev

Log:
2008-11-26  Stephane Delcroix  <sdelcroix novell com>

	* src/Platform/Gnome/PreferenceBackend.cs: mark the exception with
	the Serializable attribute.

Modified:
   trunk/ChangeLog
   trunk/src/Platform/Gnome/PreferenceBackend.cs

Modified: trunk/src/Platform/Gnome/PreferenceBackend.cs
==============================================================================
--- trunk/src/Platform/Gnome/PreferenceBackend.cs	(original)
+++ trunk/src/Platform/Gnome/PreferenceBackend.cs	Wed Nov 26 14:37:39 2008
@@ -33,6 +33,7 @@
 		}
 	}
 
+	[Serializable]
 	public class NoSuchKeyException : Exception
 	{
 		public NoSuchKeyException () : base ()
@@ -57,12 +58,16 @@
 {
 	public class PreferenceBackend
 	{
+		static object sync_handler = new object ();
+
 		private static GConf.Client client;
 		private GConf.Client Client {
 			get {
-				if (client == null)
-					client = new GConf.Client ();
-				return client;
+				lock (sync_handler) {
+					if (client == null)
+						client = new GConf.Client ();
+					return client;
+				}
 			}
 		}
 



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