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

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Thu Jul 1 17:50:51 EDT 2004


Author: tberman
Date: 2004-07-01 17:50:51 -0400 (Thu, 01 Jul 2004)
New Revision: 1875

Modified:
   trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
   trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs
Log:
fix focus being lost.


Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2004-07-01 19:31:23 UTC (rev 1874)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2004-07-01 21:50:51 UTC (rev 1875)
@@ -1,3 +1,9 @@
+2004-07-01  Todd Berman  <tberman at off.net>
+
+	* CodeCompletion/CompletionWindow.cs: Sigh, this was an evil bug
+	to let slip, this will work far far better though. Now the completion
+	gui should go away properly.
+
 2004-06-29  Todd Berman  <tberman at off.net>
 
 	* Gui/SourceEditorDisplayBinding.cs: Removing that patch for now,

Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs	2004-07-01 19:31:23 UTC (rev 1874)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs	2004-07-01 21:50:51 UTC (rev 1875)
@@ -242,9 +242,10 @@
 			this.Add (frame);
 			
 			listView.KeyPressEvent += new KeyPressEventHandler (ListKeypressEvent);
-			listView.FocusOutEvent += new FocusOutEventHandler (LostFocusListView);
+			this.FocusOutEvent += new FocusOutEventHandler (LostFocusListView);
+			this.AddEvents ((int) (Gdk.EventMask.LeaveNotifyMask));
 			listView.RowActivated += new RowActivatedHandler (ActivateItem);
-			listView.AddEvents ((int) (Gdk.EventMask.KeyPressMask | Gdk.EventMask.LeaveNotifyMask));
+			listView.AddEvents ((int) (Gdk.EventMask.KeyPressMask));
 		}
 	
 		/// <remarks>
@@ -367,7 +368,6 @@
 					control.buf.DropCompleteAhead ();
 					control.buf.CompleteAhead (data.CompletionString.Substring(inst));
 				}
-				
 				// This code is for sizing the treeview properly.
 				Gtk.TreePath path = store.GetPath (iter);
 				Gdk.Rectangle backRect = listView.GetBackgroundArea (path, (Gtk.TreeViewColumn)listView.Columns[0]);




More information about the Monodevelop-patches-list mailing list