[banshee] [GConfConfigurationClient] do not support on MeeGo



commit 07a8a6265dbdc4b412eb9d807523430239ae9caa
Author: Aaron Bockover <abockover novell com>
Date:   Tue Apr 27 08:09:24 2010 -0400

    [GConfConfigurationClient] do not support on MeeGo
    
    GConf DBus is incredibly slow in MeeGo, so throw an exception
    to allow fallback to XmlConfigurationClient, which is faster.
    
    This also has the advantage of easier customization on MeeGo/preloads
    since config.xml can be dropped into /etc/skel, avoiding so many
    annoying GConf schema issues.

 .../GConfConfigurationClient.cs                    |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/Backends/Banshee.Gnome/Banshee.GnomeBackend/GConfConfigurationClient.cs b/src/Backends/Banshee.Gnome/Banshee.GnomeBackend/GConfConfigurationClient.cs
index 3011437..69635b3 100644
--- a/src/Backends/Banshee.Gnome/Banshee.GnomeBackend/GConfConfigurationClient.cs
+++ b/src/Backends/Banshee.Gnome/Banshee.GnomeBackend/GConfConfigurationClient.cs
@@ -70,6 +70,13 @@ namespace Banshee.GnomeBackend
             }
         }
 
+        public GConfConfigurationClient ()
+        {
+            if (Hyena.PlatformDetection.IsMeeGo) {
+                throw new InvalidOperationException ("GConf is not supported on MeeGo");
+            }
+        }
+
         private string CreateKey (string @namespace, string part)
         {
             string hash_key = String.Concat (@namespace, part);



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