Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@xamarin.com>2015-12-15 15:18:38 +0300
committerLluis Sanchez <lluis@xamarin.com>2015-12-15 18:43:06 +0300
commitb337b503ce5dfde6a50e9857db5cc65815ce37fb (patch)
tree75356622e8eb202587b062505a80b9345e314923 /main/src/addins/WindowsPlatform
parenta0c539d46e7fef88393d86f3875a90cc6dec4396 (diff)
Close most of DispatchService
Most of the DispatchService functionality has been superseeded by async api and by methods in MonoDevelop.Core.Runtime.
Diffstat (limited to 'main/src/addins/WindowsPlatform')
-rw-r--r--main/src/addins/WindowsPlatform/WindowsPlatform/MainToolbar/StatusBar.xaml.cs2
-rw-r--r--main/src/addins/WindowsPlatform/WindowsPlatform/MainToolbar/WPFToolbar.cs5
-rw-r--r--main/src/addins/WindowsPlatform/WindowsPlatform/WindowsProxyCredentialProvider.cs4
3 files changed, 6 insertions, 5 deletions
diff --git a/main/src/addins/WindowsPlatform/WindowsPlatform/MainToolbar/StatusBar.xaml.cs b/main/src/addins/WindowsPlatform/WindowsPlatform/MainToolbar/StatusBar.xaml.cs
index 263e492eef..dc1fabd45a 100644
--- a/main/src/addins/WindowsPlatform/WindowsPlatform/MainToolbar/StatusBar.xaml.cs
+++ b/main/src/addins/WindowsPlatform/WindowsPlatform/MainToolbar/StatusBar.xaml.cs
@@ -59,7 +59,7 @@ namespace WindowsPlatform.MainToolbar
wc++;
}
- DispatchService.GuiDispatch (delegate {
+ Runtime.RunInMainThread (delegate {
if (ec > 0) {
BuildResultPanelVisibility = Visibility.Visible;
BuildResultCount = ec;
diff --git a/main/src/addins/WindowsPlatform/WindowsPlatform/MainToolbar/WPFToolbar.cs b/main/src/addins/WindowsPlatform/WindowsPlatform/MainToolbar/WPFToolbar.cs
index d7872eeda6..28c13f831d 100644
--- a/main/src/addins/WindowsPlatform/WindowsPlatform/MainToolbar/WPFToolbar.cs
+++ b/main/src/addins/WindowsPlatform/WindowsPlatform/MainToolbar/WPFToolbar.cs
@@ -1,5 +1,6 @@
using MonoDevelop.Components.MainToolbar;
using MonoDevelop.Components.Windows;
+using MonoDevelop.Core;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -34,7 +35,7 @@ namespace WindowsPlatform.MainToolbar
if (newModel == null)
return;
- DispatchService.GuiDispatch(() => {
+ Runtime.RunInMainThread(() => {
ActiveConfiguration = newModel;
if (ConfigurationChanged != null)
@@ -48,7 +49,7 @@ namespace WindowsPlatform.MainToolbar
return;
using (var mutableModel = newModel.GetMutableModel()) {
- DispatchService.GuiDispatch(() => {
+ Runtime.RunInMainThread(() => {
ActiveRuntime = newModel;
var ea = new MonoDevelop.Components.MainToolbar.HandledEventArgs();
diff --git a/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsProxyCredentialProvider.cs b/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsProxyCredentialProvider.cs
index 598f796ce0..76970ec8c4 100644
--- a/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsProxyCredentialProvider.cs
+++ b/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsProxyCredentialProvider.cs
@@ -78,11 +78,11 @@ namespace MonoDevelop.Platform.Windows
{
NetworkCredential result = null;
- DispatchService.GuiSyncDispatch (() => {
+ Runtime.RunInMainThread (() => {
var form = new PlaceholderForm (credentialType, uri, null);
if (GdkWin32.RunModalWin32Form (form, IdeApp.Workbench.RootWindow))
result = new NetworkCredential (form.Username, form.Password, form.Domain);
- });
+ }).Wait ();
// store the obtained credentials in the auth store
// but don't store for the root url since it may have other credentials