[banshee] InternetRadio: Provide IsPlaying handler (bgo#686657)



commit b1a16f03295c184c917032e574708eb462ba31a8
Author: Alex Willmy <willmyalex gmail com>
Date:   Sun Jan 20 23:04:22 2013 +0000

    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>

 .../Banshee.InternetRadio/InternetRadioSource.cs   |    3 +++
 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 e0381c7..001574a 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 ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]