diff options
author | Lluis Sanchez <lluis@novell.com> | 2009-03-09 21:42:37 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2009-03-09 21:42:37 +0300 |
commit | bb90b8ebd83edd8de0ae373b266861784128a9cf (patch) | |
tree | e9115ec850f93e295d9cee9051a10daefe209740 | |
parent | 5c49453939ac83f1bf79ffeb4b951165f5cd5a75 (diff) |
Merged from trunk. r128874.main/1.9.3
svn path=/branches/monodevelop/main/2.0/; revision=128898
-rw-r--r-- | main/src/core/MonoDevelop.Core.Gui/ChangeLog | 7 | ||||
-rw-r--r-- | main/src/core/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/DispatchService.cs | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Core.Gui/ChangeLog b/main/src/core/MonoDevelop.Core.Gui/ChangeLog index 2d610632ab..3db6a0b517 100644 --- a/main/src/core/MonoDevelop.Core.Gui/ChangeLog +++ b/main/src/core/MonoDevelop.Core.Gui/ChangeLog @@ -1,3 +1,10 @@ +2009-03-09 Lluis Sanchez Gual <lluis@novell.com> + + * MonoDevelop.Core.Gui/DispatchService.cs: Use Glib.Timeout + instead of Glib.Idle for dispatching into the gui thread. + The execution of idle handlers may be delayed if there are + other events waiting. + 2009-03-05 Lluis Sanchez Gual <lluis@novell.com> * AssemblyInfo.cs: diff --git a/main/src/core/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/DispatchService.cs b/main/src/core/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/DispatchService.cs index e915d6bb28..6ab1231549 100644 --- a/main/src/core/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/DispatchService.cs +++ b/main/src/core/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/DispatchService.cs @@ -41,7 +41,7 @@ namespace MonoDevelop.Core.Gui static ArrayList arrGuiQueue; static Thread thrBackground; static uint iIdle = 0; - static GLib.IdleHandler handler; + static GLib.TimeoutHandler handler; static Thread guiThread; static GuiSyncContext guiContext; static internal bool DispatchDebug; @@ -53,7 +53,7 @@ namespace MonoDevelop.Core.Gui guiThread = Thread.CurrentThread; - handler = new GLib.IdleHandler (guiDispatcher); + handler = new GLib.TimeoutHandler (guiDispatcher); arrBackgroundQueue = new ArrayList (); arrGuiQueue = new ArrayList (); thrBackground = new Thread (new ThreadStart (backgroundDispatcher)); @@ -119,7 +119,7 @@ namespace MonoDevelop.Core.Gui lock (arrGuiQueue) { arrGuiQueue.Add (msg); if (iIdle == 0) - iIdle = GLib.Idle.Add (handler); + iIdle = GLib.Timeout.Add (0, handler); } } |