banshee r3012 - in branches/banshee/stable: . src/Plugins/Banshee.Plugins.LastFM
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3012 - in branches/banshee/stable: . src/Plugins/Banshee.Plugins.LastFM
- Date: Tue, 22 Jan 2008 22:21:45 +0000 (GMT)
Author: gburt
Date: Tue Jan 22 22:21:45 2008
New Revision: 3012
URL: http://svn.gnome.org/viewvc/banshee?rev=3012&view=rev
Log:
2008-01-22 Gabriel Burt <gabriel burt gmail com>
* src/Plugins/Banshee.Plugins.LastFM/LastFMSource.cs:
* src/Plugins/Banshee.Plugins.LastFM/Plugin.cs:
* src/Plugins/Banshee.Plugins.LastFM/banshee-plugin-lastfm.schemas.in:
Only auto expand the Last.fm radio source if it was expanded the last time
Banshee was closed.
Modified:
branches/banshee/stable/ChangeLog
branches/banshee/stable/src/Plugins/Banshee.Plugins.LastFM/LastFMSource.cs
branches/banshee/stable/src/Plugins/Banshee.Plugins.LastFM/Plugin.cs
branches/banshee/stable/src/Plugins/Banshee.Plugins.LastFM/banshee-plugin-lastfm.schemas.in
Modified: branches/banshee/stable/src/Plugins/Banshee.Plugins.LastFM/LastFMSource.cs
==============================================================================
--- branches/banshee/stable/src/Plugins/Banshee.Plugins.LastFM/LastFMSource.cs (original)
+++ branches/banshee/stable/src/Plugins/Banshee.Plugins.LastFM/LastFMSource.cs Tue Jan 22 22:21:45 2008
@@ -193,7 +193,12 @@
}
public override bool? AutoExpand {
- get { return true; }
+ get { return LastFMPlugin.ExpandedSchema.Get (); }
+ }
+
+ public override bool Expanded {
+ get { return LastFMPlugin.ExpandedSchema.Get (); }
+ set { LastFMPlugin.ExpandedSchema.Set (value); }
}
public override bool CanActivate {
Modified: branches/banshee/stable/src/Plugins/Banshee.Plugins.LastFM/Plugin.cs
==============================================================================
--- branches/banshee/stable/src/Plugins/Banshee.Plugins.LastFM/Plugin.cs (original)
+++ branches/banshee/stable/src/Plugins/Banshee.Plugins.LastFM/Plugin.cs Tue Jan 22 22:21:45 2008
@@ -262,5 +262,9 @@
public static readonly SchemaEntry<string> LastUserSchema = new SchemaEntry<string> (
"plugins.lastfm", "username", "", "Last.fm user", "Last.fm username"
);
+
+ public static readonly SchemaEntry<bool> ExpandedSchema = new SchemaEntry<bool> (
+ "plugins.lastfm", "expanded", false, "Last.fm expanded", "Last.fm expanded"
+ );
}
}
Modified: branches/banshee/stable/src/Plugins/Banshee.Plugins.LastFM/banshee-plugin-lastfm.schemas.in
==============================================================================
--- branches/banshee/stable/src/Plugins/Banshee.Plugins.LastFM/banshee-plugin-lastfm.schemas.in (original)
+++ branches/banshee/stable/src/Plugins/Banshee.Plugins.LastFM/banshee-plugin-lastfm.schemas.in Tue Jan 22 22:21:45 2008
@@ -13,6 +13,17 @@
</locale>
</schema>
<schema>
+ <key>/schemas/apps/banshee/plugins/lastfm/expanded</key>
+ <applyto>/apps/banshee/plugins/lastfm/expanded</applyto>
+ <owner>banshee</owner>
+ <type>bool</type>
+ <default>false</default>
+ <locale name="C">
+ <short>Last.fm expanded</short>
+ <long>Last.fm expanded</long>
+ </locale>
+ </schema>
+ <schema>
<key>/schemas/apps/banshee/plugins/lastfm/station_sort</key>
<applyto>/apps/banshee/plugins/lastfm/station_sort</applyto>
<owner>banshee</owner>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]