[banshee] AudiobookLibrarySource: Accept tracks dragged from playlists
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] AudiobookLibrarySource: Accept tracks dragged from playlists
- Date: Wed, 21 Dec 2011 18:22:08 +0000 (UTC)
commit 48320e1df0f06f1f6dc85a301a15b739723368a8
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Wed Dec 21 19:19:46 2011 +0100
AudiobookLibrarySource: Accept tracks dragged from playlists
Override AcceptsInputFromSource so that you can drag tracks
from playlists and smart playlists into the Audiobook
source. Fixes bgo#608389.
.../Banshee.Audiobook/AudiobookLibrarySource.cs | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs b/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
index 0d06777..5fa73b0 100644
--- a/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
+++ b/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
@@ -338,6 +338,12 @@ namespace Banshee.Audiobook
yield return books_model;
}
+ public override bool AcceptsInputFromSource (Source source)
+ {
+ return CanAddTracks && source != this && source.Parent != this
+ && (source.Parent is PrimarySource || source is PrimarySource);
+ }
+
#region IBasicPlaybackController implementation
public bool First ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]