[Monodevelop-patches-list] r2648 - in trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor: . CodeCompletion

John Luke <jluke@cfl.rr.com> jluke at mono-cvs.ximian.com
Wed Jul 13 18:21:28 EDT 2005


Author: jluke
Date: 2005-07-13 18:21:28 -0400 (Wed, 13 Jul 2005)
New Revision: 2648

Modified:
   trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
   trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionListWindow.cs
Log:
* CodeCompletion/CompletionListWindow.cs: complete on double-click


Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2005-07-13 21:27:58 UTC (rev 2647)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2005-07-13 22:21:28 UTC (rev 2648)
@@ -1,6 +1,7 @@
 2005-07-13  John Luke  <john.luke at gmail.com>
 
 	* CodeCompletion/ListWindow.cs: scroll with the mousewheel
+	* CodeCompletion/CompletionListWindow.cs: complete on double-click
 
 2005-07-13  Lluis Sanchez Gual  <lluis at novell.com> 
 

Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionListWindow.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionListWindow.cs	2005-07-13 21:27:58 UTC (rev 2647)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionListWindow.cs	2005-07-13 22:21:28 UTC (rev 2648)
@@ -159,6 +159,16 @@
 			// first line array out of bounds
 			//UpdateDeclarationView ();
 		}
+
+		protected override bool OnButtonPressEvent (Gdk.EventButton evnt)
+		{
+			bool ret = base.OnButtonPressEvent (evnt);
+			if (evnt.Button == 1 && evnt.Type == Gdk.EventType.TwoButtonPress) {
+				wnd.Hide ();
+				wnd.UpdateWord ();
+			}
+			return ret;
+		}
 		
 		protected override void OnSelectionChanged ()
 		{




More information about the Monodevelop-patches-list mailing list