[banshee] [MeeGo] Set active source on views when starting
- From: Aaron Bockover <abock src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [MeeGo] Set active source on views when starting
- Date: Wed, 31 Mar 2010 17:41:32 +0000 (UTC)
commit fd7768b9e3d927369f70edc3c00af9524b398839
Author: Aaron Bockover <abockover novell com>
Date: Mon Mar 29 15:04:02 2010 -0400
[MeeGo] Set active source on views when starting
Without doing this, we may miss the ActiveSourceChanged signal
when moving to the startup source if we're not bound in time.
.../Banshee.MeeGo/MediaPanelContents.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MediaPanelContents.cs b/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MediaPanelContents.cs
index ba06bd4..f2e0681 100644
--- a/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MediaPanelContents.cs
+++ b/src/Extensions/Banshee.MeeGo/Banshee.MeeGo/MediaPanelContents.cs
@@ -83,12 +83,16 @@ namespace Banshee.MeeGo
ShowAll ();
- source_combo_box.UpdateActiveSource ();
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.Refresh ();
+ source_combo_box.UpdateActiveSource ();
+
search_entry.Changed += OnSearchEntryChanged;
+
+ source_contents.SetSource (ServiceManager.SourceManager.ActiveSource);
ServiceManager.SourceManager.ActiveSourceChanged += OnActiveSourceChanged;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]