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

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Fri Dec 3 16:53:20 EST 2004


Author: alp
Date: 2004-12-03 16:53:20 -0500 (Fri, 03 Dec 2004)
New Revision: 2048

Modified:
   trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
   trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionListWindow.cs
Log:
2004-12-03  Alp Toker  <alp at atoker.com>

	* CodeCompletion/CompletionListWindow.cs: Fix tooltip positioning.


Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2004-12-03 18:31:33 UTC (rev 2047)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2004-12-03 21:53:20 UTC (rev 2048)
@@ -1,3 +1,7 @@
+2004-12-03  Alp Toker  <alp at atoker.com>
+
+	* CodeCompletion/CompletionListWindow.cs: Fix tooltip positioning.
+
 2004-12-03  Todd Berman  <tberman at off.net>
 
 	* Gui/SourceEditorBuffer.cs:

Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionListWindow.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionListWindow.cs	2004-12-03 18:31:33 UTC (rev 2047)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionListWindow.cs	2004-12-03 21:53:20 UTC (rev 2048)
@@ -122,6 +122,8 @@
 		{
 			ICompletionData data = completionData[List.Selection];
 			
+			declarationviewwindow.Hide ();
+			
 			// FIXME: This code is buggy, and generates a bad placement sometimes when you jump a lot.
 			// but it is better than 0,0
 			// This code is for sizing the treeview properly.
@@ -165,13 +167,14 @@
 			if (declarationviewwindow.DescriptionMarkup.Length == 0)
 				return;
 
+			declarationviewwindow.Multiple = (ccdata.Overloads != 0);
 			int dvwWidth, dvwHeight;
 			declarationviewwindow.Move (this.Screen.Width+1, vert);
 
+			declarationviewwindow.ReshowWithInitialSize ();
 			declarationviewwindow.ShowAll ();
 			declarationviewwindow.Multiple = (ccdata.Overloads != 0);
 
-			//FIXME: GetSize returns the size /before/ the window was automatically shrunk
 			declarationviewwindow.GdkWindow.GetSize (out dvwWidth, out dvwHeight);
 
 			if (this.Screen.Width <= horiz + dvwWidth) {




More information about the Monodevelop-patches-list mailing list