banshee r4893 - in trunk/banshee: . src/Extensions/Banshee.AudioCd/Banshee.AudioCd
- From: abock svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4893 - in trunk/banshee: . src/Extensions/Banshee.AudioCd/Banshee.AudioCd
- Date: Fri, 9 Jan 2009 01:13:20 +0000 (UTC)
Author: abock
Date: Fri Jan 9 01:13:20 2009
New Revision: 4893
URL: http://svn.gnome.org/viewvc/banshee?rev=4893&view=rev
Log:
2009-01-08 Aaron Bockover <abock gnome org>
* src/Extensions/Banshee.AudioCd/Banshee.AudioCd/AudioCdSource.cs:
Implement IImportSource so the disc shows up in the Import Media dialog,
fixing a functional regression from legacy 0.13.x (BNC #457918)
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Extensions/Banshee.AudioCd/Banshee.AudioCd/AudioCdSource.cs
Modified: trunk/banshee/src/Extensions/Banshee.AudioCd/Banshee.AudioCd/AudioCdSource.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.AudioCd/Banshee.AudioCd/AudioCdSource.cs (original)
+++ trunk/banshee/src/Extensions/Banshee.AudioCd/Banshee.AudioCd/AudioCdSource.cs Fri Jan 9 01:13:20 2009
@@ -35,6 +35,7 @@
using Banshee.Base;
using Banshee.ServiceStack;
using Banshee.Sources;
+using Banshee.Library;
using Banshee.Collection;
using Banshee.Collection.Database;
@@ -44,7 +45,7 @@
namespace Banshee.AudioCd
{
public class AudioCdSource : Source, ITrackModelSource, IUnmapableSource,
- IDurationAggregator, IFileSizeAggregator, IDisposable
+ IImportSource, IDurationAggregator, IFileSizeAggregator, IDisposable
{
private AudioCdService service;
private AudioCdDiscModel disc_model;
@@ -446,5 +447,26 @@
#endregion
+#region IImportSource
+
+ void IImportSource.Import ()
+ {
+ ImportDisc ();
+ }
+
+ string [] IImportSource.IconNames {
+ get { return Properties.GetStringList ("Icon.Name"); }
+ }
+
+ bool IImportSource.CanImport {
+ get { return true; }
+ }
+
+ int IImportSource.SortOrder {
+ get { return -10; }
+ }
+
+#endregion
+
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]