banshee r5043 - in trunk/banshee: . src/Extensions/Banshee.Daap/Banshee.Daap
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r5043 - in trunk/banshee: . src/Extensions/Banshee.Daap/Banshee.Daap
- Date: Tue, 17 Feb 2009 20:19:33 +0000 (UTC)
Author: gburt
Date: Tue Feb 17 20:19:32 2009
New Revision: 5043
URL: http://svn.gnome.org/viewvc/banshee?rev=5043&view=rev
Log:
2009-02-17 Gabriel Burt <gabriel burt gmail com>
* src/Extensions/Banshee.Daap/Banshee.Daap/DaapContainerSource.cs: Patch
from Alexander Kojevnikov making the Shared Music source remember whether
the user had it expanded or not (BGO #561931)
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Extensions/Banshee.Daap/Banshee.Daap/DaapContainerSource.cs
Modified: trunk/banshee/src/Extensions/Banshee.Daap/Banshee.Daap/DaapContainerSource.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.Daap/Banshee.Daap/DaapContainerSource.cs (original)
+++ trunk/banshee/src/Extensions/Banshee.Daap/Banshee.Daap/DaapContainerSource.cs Tue Feb 17 20:19:32 2009
@@ -31,6 +31,7 @@
using Banshee.Base;
using Banshee.Collection;
+using Banshee.Configuration;
using Banshee.Sources;
using Banshee.ServiceStack;
@@ -45,9 +46,14 @@
}
public override bool? AutoExpand {
- get { return true; }
+ get { return ExpandedSchema.Get (); }
}
-
+
+ public override bool Expanded {
+ get { return ExpandedSchema.Get (); }
+ set { ExpandedSchema.Set (value); }
+ }
+
public override bool CanActivate {
get { return false; }
}
@@ -55,5 +61,9 @@
public override bool CanRename {
get { return false; }
}
+
+ public static readonly SchemaEntry<bool> ExpandedSchema = new SchemaEntry<bool> (
+ "plugins.daap", "expanded", true, "Shared Music expanded", "Shared Music expanded"
+ );
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]