[banshee] [Nereid] Let sources override double click behavior
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [Nereid] Let sources override double click behavior
- Date: Fri, 14 May 2010 22:43:07 +0000 (UTC)
commit 7038c4ab66fda457606531713c22fd6700b522d8
Author: Gabriel Burt <gabriel burt gmail com>
Date: Fri May 14 14:21:00 2010 -0700
[Nereid] Let sources override double click behavior
So the Audiobook library can, instead of starting to play, return to the
grid view.
src/Clients/Nereid/Nereid/PlayerInterface.cs | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/Clients/Nereid/Nereid/PlayerInterface.cs b/src/Clients/Nereid/Nereid/PlayerInterface.cs
index 2d89650..74b4a23 100644
--- a/src/Clients/Nereid/Nereid/PlayerInterface.cs
+++ b/src/Clients/Nereid/Nereid/PlayerInterface.cs
@@ -380,7 +380,10 @@ namespace Nereid
source_view.RowActivated += delegate {
Source source = ServiceManager.SourceManager.ActiveSource;
- if (source is ITrackModelSource) {
+ var handler = source.Properties.Get<System.Action> ("ActivationAction");
+ if (handler != null) {
+ handler ();
+ } else if (source is ITrackModelSource) {
ServiceManager.PlaybackController.NextSource = (ITrackModelSource)source;
// Allow changing the play source without stopping the current song by
// holding ctrl when activating a source. After the song is done, playback will
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]