[banshee] Set as active source in an idle callback
- From: Rodney Dawes <dobey src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Set as active source in an idle callback
- Date: Mon, 21 Nov 2011 20:35:01 +0000 (UTC)
commit faaecad57861d8209bdc9d2610ba6f176e80fccf
Author: Rodney Dawes <rodney dawes canonical com>
Date: Mon Nov 21 15:33:48 2011 -0500
Set as active source in an idle callback
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=662883
.../UbuntuOneMusicStoreSource.cs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.UbuntuOneMusicStore/Banshee.UbuntuOneMusicStore/UbuntuOneMusicStoreSource.cs b/src/Extensions/Banshee.UbuntuOneMusicStore/Banshee.UbuntuOneMusicStore/UbuntuOneMusicStoreSource.cs
index b3e332c..8b06017 100644
--- a/src/Extensions/Banshee.UbuntuOneMusicStore/Banshee.UbuntuOneMusicStore/UbuntuOneMusicStoreSource.cs
+++ b/src/Extensions/Banshee.UbuntuOneMusicStore/Banshee.UbuntuOneMusicStore/UbuntuOneMusicStoreSource.cs
@@ -103,7 +103,8 @@ namespace Banshee.UbuntuOneMusicStore
if (IsU1msUri (uri)) {
string http_url = uri.Replace ("u1ms://", "http://");
custom_view.Store.LoadStoreLink (http_url);
- ServiceManager.SourceManager.SetActiveSource (this);
+ GLib.Idle.Add (delegate { ServiceManager.SourceManager.SetActiveSource (this); return false; });
+
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]