[banshee] DaapService: Fix another gtk call outside of the main thread
- From: AndrÃs Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] DaapService: Fix another gtk call outside of the main thread
- Date: Fri, 21 Sep 2012 21:29:46 +0000 (UTC)
commit c193e650065b6ec6e3e935151ca75eba4004a0c6
Author: Andres G. Aragoneses <knocte gmail com>
Date: Fri Sep 21 22:04:14 2012 +0100
DaapService: Fix another gtk call outside of the main thread
*** GTK CALL NOT IN GUI THREAD: UIManager.gtk_ui_manager_add_ui_from_string
UIManager.AddUiFromString
UIManager.AddUiFromResource
DaapService.ThreadedInitialize
Thread.StartInternal
.../Banshee.Daap/Banshee.Daap/DaapService.cs | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/Extensions/Banshee.Daap/Banshee.Daap/DaapService.cs b/src/Extensions/Banshee.Daap/Banshee.Daap/DaapService.cs
index 3e3e72d..bdec3bf 100644
--- a/src/Extensions/Banshee.Daap/Banshee.Daap/DaapService.cs
+++ b/src/Extensions/Banshee.Daap/Banshee.Daap/DaapService.cs
@@ -180,15 +180,16 @@ namespace Banshee.Daap
var uia_service = ServiceManager.Get<InterfaceActionService> ();
if (uia_service != null) {
- ThreadAssist.ProxyToMain ( () =>
+ ThreadAssist.ProxyToMain ( () => {
uia_service.GlobalActions.Add (
new ActionEntry ("AddRemoteDaapServerAction", Stock.Add,
Catalog.GetString ("Add Remote DAAP Server"), null,
Catalog.GetString ("Add a new remote DAAP server"),
OnAddRemoteServer)
- )
- );
- actions_id = uia_service.UIManager.AddUiFromResource ("GlobalUI.xml");
+ );
+ actions_id = uia_service.UIManager.AddUiFromResource ("GlobalUI.xml");
+ });
+
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]