summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Willmy <willmyalex@gmail.com>2013-01-20 23:04:22 +0000
committerAndres G. Aragoneses <knocte@gmail.com>2013-01-20 23:04:22 +0000
commitb1a16f03295c184c917032e574708eb462ba31a8 (patch)
treed6cdd4995d99109e004642fdc42ce512830f1282
parent6f870f3f682bf8a107fbbc50bd42f83401004120 (diff)
InternetRadio: Provide IsPlaying handler (bgo#686657)
Provide a handler to check if a radio station is currently playing so the UI can correctly update status indicator columns. Signed-off-by: Andres G. Aragoneses <knocte@gmail.com>
-rw-r--r--src/Extensions/Banshee.InternetRadio/Banshee.InternetRadio/InternetRadioSource.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Extensions/Banshee.InternetRadio/Banshee.InternetRadio/InternetRadioSource.cs b/src/Extensions/Banshee.InternetRadio/Banshee.InternetRadio/InternetRadioSource.cs
index e0381c712..001574a5d 100644
--- a/src/Extensions/Banshee.InternetRadio/Banshee.InternetRadio/InternetRadioSource.cs
+++ b/src/Extensions/Banshee.InternetRadio/Banshee.InternetRadio/InternetRadioSource.cs
@@ -41,6 +41,7 @@ using Banshee.Collection;
using Banshee.Collection.Database;
using Banshee.Configuration;
using Banshee.PlaybackController;
+using Banshee.MediaEngine;
using Banshee.Gui;
using Banshee.Sources.Gui;
@@ -144,6 +145,8 @@ namespace Banshee.InternetRadio
radio_track.ParentTrack as DatabaseTrackInfo, a);
};
+ TrackIsPlayingHandler = ServiceManager.PlayerEngine.IsPlaying;
+
var migrator = new XspfMigrator (this);
if (migrator.Migrate () | migrator.LoadDefaults ()) {
Reload ();