[banshee] Revert "Call the notify handler from a GLib idle delegate"



commit 32a4482e06a9e0b340017bd8afa2f1e8365720cf
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Tue Nov 1 13:36:00 2011 +0100

    Revert "Call the notify handler from a GLib idle delegate"
    
    The ActiveSourceChanged event is used amongst others by
    InterfaceActionService to set up the GUI for the source, so the handlers
    need to be called before Activate(). This might not be the case if
    they're called in an idle delegate.
    
    This reverts commit 9323f7b5c056ce52128dd4dfdf5b16abff8fb6e9 and fixes
    bgo#662982.

 .../Banshee.Sources/SourceManager.cs               |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs b/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs
index 289f954..d0878bd 100644
--- a/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs
+++ b/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs
@@ -411,7 +411,7 @@ namespace Banshee.Sources
             if(handler != null) {
                 SourceEventArgs args = new SourceEventArgs();
                 args.Source = active_source;
-                GLib.Idle.Add (delegate { handler(args); return false; });
+                handler(args);
             }
 
             source.Activate();



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