[banshee/stable-1.6] [MeeGoService] Remove obsolete NowPlaying code
- From: Aaron Bockover <abock src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/stable-1.6] [MeeGoService] Remove obsolete NowPlaying code
- Date: Sun, 2 May 2010 00:09:50 +0000 (UTC)
commit 50a8d9083f69c0171a0f3a540b8124c31ba1f4bf
Author: Aaron Bockover <abockover novell com>
Date: Sat May 1 19:45:53 2010 -0400
[MeeGoService] Remove obsolete NowPlaying code
.../Banshee.MeeGo/Banshee.MeeGo/MeeGoService.cs | 40 +-------------------
1 files changed, 1 insertions(+), 39 deletions(-)
---
diff --git a/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MeeGoService.cs b/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MeeGoService.cs
index 81e08e3..ffac0f1 100644
--- a/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MeeGoService.cs
+++ b/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MeeGoService.cs
@@ -47,8 +47,6 @@ namespace Banshee.MeeGo
private InterfaceActionService interface_action_service;
private SourceManager source_manager;
private PlayerEngineService player;
- private Source now_playing;
-
private MeeGoPanel panel;
void IExtensionService.Initialize ()
@@ -118,43 +116,6 @@ namespace Banshee.MeeGo
elements_service.PrimaryWindow.Hide ();
return false;
};
-
- FindNowPlaying ();
- ServiceManager.PlayerEngine.ConnectEvent (OnPlayerStateChanged,
- PlayerEvent.StateChange | PlayerEvent.StartOfStream);
- }
-
- private void OnPlayerStateChanged (PlayerEventArgs args)
- {
- var player = ServiceManager.PlayerEngine;
- if (player.CurrentState == PlayerState.Playing &&
- player.CurrentTrack.HasAttribute (TrackMediaAttributes.VideoStream)) {
- if (now_playing != null) {
- ServiceManager.SourceManager.SetActiveSource (now_playing);
- }
-
- PresentPrimaryInterface ();
- }
- }
-
- private void FindNowPlaying ()
- {
- foreach (var src in ServiceManager.SourceManager.Sources) {
- if (src.UniqueId.Contains ("now-playing")) {
- now_playing = src;
- break;
- }
- }
-
- if (now_playing != null) {
- return;
- }
-
- Banshee.ServiceStack.ServiceManager.SourceManager.SourceAdded += (args) => {
- if (now_playing == null && args.Source.UniqueId.Contains ("now-playing")) {
- now_playing = args.Source;
- }
- };
}
public void PresentPrimaryInterface ()
@@ -170,6 +131,7 @@ namespace Banshee.MeeGo
{
if (panel != null) {
panel.Dispose ();
+ panel = null;
}
interface_action_service = null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]