[banshee] MeeGo: Add more sources to the MeeGo dropdown list (bgo#646042)



commit c79915005bb60d411ee835796982098e3a0bf6ee
Author: Zhou Ting <ting z zhou intel com>
Date:   Tue Mar 29 23:07:00 2011 +0800

    MeeGo: Add more sources to the MeeGo dropdown list (bgo#646042)
    
    Signed-off-by: Gabriel Burt <gabriel burt gmail com>

 .../Banshee.MeeGo/MediaPanelContents.cs            |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MediaPanelContents.cs b/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MediaPanelContents.cs
index 452a1bb..e67bc7e 100644
--- a/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MediaPanelContents.cs
+++ b/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MediaPanelContents.cs
@@ -90,10 +90,7 @@ namespace Banshee.MeeGo
                 ServiceManager.PlayerEngine.CurrentState != PlayerState.Idle,
                 PlayerEvent.StateChange | PlayerEvent.StartOfStream);
 
-            source_combo_box.Model.Filter = (source) =>
-                source == ServiceManager.SourceManager.MusicLibrary ||
-                source.Parent == ServiceManager.SourceManager.MusicLibrary ||
-                source.GetType ().FullName == "Banshee.PlayQueue.PlayQueueSource";
+            source_combo_box.Model.Filter = (source) => source is ITrackModelSource;
             source_combo_box.Model.Refresh ();
             source_combo_box.UpdateActiveSource ();
 
@@ -302,6 +299,11 @@ namespace Banshee.MeeGo
                 SetSource (source);
 
                 search_entry.Ready = true;
+
+                if (source != null && source != ServiceManager.SourceManager.MusicLibrary
+                     && source.Parent != ServiceManager.SourceManager.MusicLibrary) {
+                     ServiceManager.Get<MeeGoService> ().PresentPrimaryInterface ();
+                }
             });
         }
 



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