[Monodevelop-patches-list] r674 - trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Mon Jan 26 23:43:21 EST 2004


Author: tberman
Date: 2004-01-26 23:43:21 -0500 (Mon, 26 Jan 2004)
New Revision: 674

Modified:
   trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextAreaClipboardHandler.cs
Log:
this should enable/disable the clipboard properly


Modified: trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextAreaClipboardHandler.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextAreaClipboardHandler.cs	2004-01-27 03:42:05 UTC (rev 673)
+++ trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextAreaClipboardHandler.cs	2004-01-27 04:43:21 UTC (rev 674)
@@ -48,8 +48,7 @@
 				//FIXME: This should make sure pastable data is somewhere on the clipboard.
 				// Clipboard.GetDataObject may throw an exception...
 				try {
-					//IDataObject data = Clipboard.GetDataObject();
-					//return data != null && data.GetDataPresent(DataFormats.Text);
+					return clipboard.WaitIsTextAvailable ();
 				} catch (Exception e) {
 					Console.WriteLine("Got exception while enablepaste : " + e);
 					return false;




More information about the Monodevelop-patches-list mailing list