diff options
author | 2018-06-26 18:24:10 +0400 | |
---|---|---|
committer | 2018-06-26 18:30:32 +0400 | |
commit | 13bcf3202dce3f2945ff0aa9b42c5e22219a0c88 (patch) | |
tree | bc9a719afd39f34cad7159b0f5f9d8f524eb4d52 /dev-lang/mono/files | |
parent | dev-python/jaraco-packaging: bump to 5.1.1 (diff) | |
download | gentoo-13bcf3202dce3f2945ff0aa9b42c5e22219a0c88.tar.gz gentoo-13bcf3202dce3f2945ff0aa9b42c5e22219a0c88.tar.bz2 gentoo-13bcf3202dce3f2945ff0aa9b42c5e22219a0c88.zip |
dev-lang/mono: bump to 5.12.0.226
Diffstat (limited to 'dev-lang/mono/files')
-rw-r--r-- | dev-lang/mono/files/mono-5.12-try-catch.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-lang/mono/files/mono-5.12-try-catch.patch b/dev-lang/mono/files/mono-5.12-try-catch.patch new file mode 100644 index 000000000000..051c72be6859 --- /dev/null +++ b/dev-lang/mono/files/mono-5.12-try-catch.patch @@ -0,0 +1,31 @@ +diff -ur mono-5.9.0.398/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs mono-patched-5.9.0.398/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs +--- mono-5.9.0.398/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs 2017-11-17 18:12:57.000000000 +0300 ++++ mono-patched-5.9.0.398/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs 2017-12-06 06:24:45.067519852 +0300 +@@ -2810,14 +2810,21 @@ + + internal override object ClipboardRetrieve(IntPtr handle, int type, XplatUI.ClipboardToObject converter) + { +- XConvertSelection(DisplayHandle, handle, (IntPtr)type, (IntPtr)type, FosterParent, IntPtr.Zero); ++ try ++ { ++ XConvertSelection(DisplayHandle, handle, (IntPtr)type, (IntPtr)type, FosterParent, IntPtr.Zero); + +- Clipboard.Retrieving = true; +- while (Clipboard.Retrieving) { +- UpdateMessageQueue(null, false); +- } ++ Clipboard.Retrieving = true; ++ while (Clipboard.Retrieving) { ++ UpdateMessageQueue(null, false); ++ } + +- return Clipboard.Item; ++ return Clipboard.Item; ++ } ++ catch (Exception ex) ++ { ++ return null; ++ } + } + + internal override void ClipboardStore (IntPtr handle, object obj, int type, XplatUI.ObjectToClipboard converter, bool copy) |