[banshee] Make activating an artist/album play from the start
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Make activating an artist/album play from the start
- Date: Tue, 23 Feb 2010 18:21:21 +0000 (UTC)
commit 1aa015b293e8c101b6aed421c3d43d7d890ef0a7
Author: Gabriel Burt <gabriel burt gmail com>
Date: Tue Feb 23 10:17:48 2010 -0800
Make activating an artist/album play from the start
If you double click an artist or album in the browser that is already
playing, the first song will be played (bgo#610795), unless you're in
shuffle mode.
.../PlaybackControllerService.cs | 6 +++++-
.../Banshee.Collection.Gui/TrackFilterListView.cs | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.PlaybackController/PlaybackControllerService.cs b/src/Core/Banshee.Services/Banshee.PlaybackController/PlaybackControllerService.cs
index 02961bf..20e3f52 100644
--- a/src/Core/Banshee.Services/Banshee.PlaybackController/PlaybackControllerService.cs
+++ b/src/Core/Banshee.Services/Banshee.PlaybackController/PlaybackControllerService.cs
@@ -275,7 +275,11 @@ namespace Banshee.PlaybackController
bool IBasicPlaybackController.First ()
{
if (Source.Count > 0) {
- player_engine.OpenPlay (Source.TrackModel[0]);
+ if (ShuffleMode == "off") {
+ player_engine.OpenPlay (Source.TrackModel[0]);
+ } else {
+ ((IBasicPlaybackController)this).Next (false);
+ }
}
return true;
}
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/TrackFilterListView.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/TrackFilterListView.cs
index 43c562d..d0cc8ab 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/TrackFilterListView.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/TrackFilterListView.cs
@@ -61,7 +61,7 @@ namespace Banshee.Collection.Gui
protected virtual void OnRowActivated (object o, EventArgs args)
{
ServiceManager.PlaybackController.NextSource = (ServiceManager.SourceManager.ActiveSource as Banshee.Sources.ITrackModelSource);
- ServiceManager.PlaybackController.Next ();
+ ServiceManager.PlaybackController.First ();
}
// TODO add context menu for artists/albums...probably need a Banshee.Gui/ArtistActions.cs file. Should
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]