[Monodevelop-patches-list] r925 - trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sun Feb 15 23:29:33 EST 2004


Author: tberman
Date: 2004-02-15 23:29:33 -0500 (Sun, 15 Feb 2004)
New Revision: 925

Modified:
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs
Log:
after having writen this fucking code 2 other times, and reverting it both times because i think i can do it better with one override instead of an override and 2 signal connections, breaking my shit and having to revert, im going to commit NOW and now break.


Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs	2004-02-16 03:33:47 UTC (rev 924)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs	2004-02-16 04:29:33 UTC (rev 925)
@@ -68,7 +68,12 @@
 
 		protected override bool OnKeyPressEvent (ref Gdk.EventKey e)
 		{
-			if ((char)e.Key == '.') {
+			switch ((char)e.Key) {
+			case '.':
+			case ' ':
+			case ';':
+			case '(':
+			case '[':
 				control.SimulateKeyPress (ref e);
 				LostFocusListView (null, null);
 				return true;
@@ -209,7 +214,7 @@
 			Gdk.Rectangle rect = control.GetIterLocation (control.Buffer.GetIterAtMark (control.Buffer.InsertMark));
 
 			int wx, wy;
-			control.BufferToWindowCoords (Gtk.TextWindowType.Widget, rect.X, rect.Y + rect.Height, out wx, out wy);
+			control.BufferToWindowCoords (Gtk.TextWindowType.Widget, rect.X + rect.Width, rect.Y + rect.Height, out wx, out wy);
 			
 			int tx, ty;
 			control.GdkWindow.GetOrigin(out tx, out ty);




More information about the Monodevelop-patches-list mailing list