From b1a16f03295c184c917032e574708eb462ba31a8 Mon Sep 17 00:00:00 2001 From: Alex Willmy Date: Sun, 20 Jan 2013 23:04:22 +0000 Subject: 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 --- .../Banshee.InternetRadio/Banshee.InternetRadio/InternetRadioSource.cs | 3 +++ 1 file changed, 3 insertions(+) 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 (); -- cgit v1.2.3