banshee r4036 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Sources
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4036 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Sources
- Date: Fri, 30 May 2008 05:26:28 +0000 (UTC)
Author: gburt
Date: Fri May 30 05:26:28 2008
New Revision: 4036
URL: http://svn.gnome.org/viewvc/banshee?rev=4036&view=rev
Log:
2008-05-30 Gabriel Burt <gabriel burt gmail com>
* src/Core/Banshee.Services/Banshee.Sources/PrimarySource.cs: Save and
restore the expanded state of all primary sources.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/PrimarySource.cs
Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/PrimarySource.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/PrimarySource.cs (original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/PrimarySource.cs Fri May 30 05:26:28 2008
@@ -94,6 +94,8 @@
DELETE FROM CoreTracks WHERE PrimarySourceId = ?
");
+ public readonly SchemaEntry<bool> ExpandedSchema;
+
private int dbid;
public int DbId {
get {
@@ -170,12 +172,29 @@
protected PrimarySource (string generic_name, string name, string id, int order) : base (generic_name, name, id, order)
{
PrimarySourceInitialize ();
+
+ ExpandedSchema = new SchemaEntry<bool> (
+ String.Format ("sources.{0}", ConfigurationId), "expanded", true, "Is source expanded", "Is source expanded"
+ );
}
protected PrimarySource () : base ()
{
+ ExpandedSchema = new SchemaEntry<bool> (
+ String.Format ("sources.{0}", ConfigurationId), "expanded", true, "Is source expanded", "Is source expanded"
+ );
}
+ public override bool? AutoExpand {
+ get { return ExpandedSchema.Get (); }
+ }
+
+ public override bool Expanded {
+ get { return ExpandedSchema.Get (); }
+ set { ExpandedSchema.Set (value); }
+ }
+
+
public virtual void Dispose ()
{
if (Application.ShuttingDown)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]