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

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sun Mar 28 17:42:03 EST 2004


Author: tberman
Date: 2004-03-28 17:42:03 -0500 (Sun, 28 Mar 2004)
New Revision: 1286

Modified:
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs
Log:
patch from bug #56133 by Haakon Nilsen, fixed code completion window on KDE


Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2004-03-28 22:30:55 UTC (rev 1285)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2004-03-28 22:42:03 UTC (rev 1286)
@@ -1,3 +1,8 @@
+2004-03-28  Todd Berman  <tberman at sevenl.net>
+
+	* CodeCompletion/CompletionWindow.cs: apply patch from Haakon Nilsen
+	<haakon AT ii.uib.no> to fix completion window on KDE.
+
 2004-03-28  John Luke  <jluke at cfl.rr.com>
 	
 	* Gui/SourceEditorDisplayBinding.cs:

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs	2004-03-28 22:30:55 UTC (rev 1285)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs	2004-03-28 22:42:03 UTC (rev 1286)
@@ -248,9 +248,10 @@
 			control.GdkWindow.GetOrigin (out tx, out ty);
 			//Console.WriteLine ("Moving to: " + (tx + wx) + " . " + (ty + wy));
 			System.Threading.Thread.Sleep (100);
+			ShowAll ();
 			Move (tx + wx, ty + wy);
+			Present ();
 			listView.Selection.Changed += new EventHandler (RowActivated);
-			ShowAll ();
 			RowActivated (null, null);
 			//GdkWindow.Move (tx + wx, ty + wy);
 		}
@@ -343,8 +344,9 @@
 				// but it is better than 0,0
                                 // This code is for sizing the treeview properly.
 				Gdk.Rectangle rect = listView.GetCellArea (path, (Gtk.TreeViewColumn)listView.Columns[0]);
-				int listpos_x, listpos_y;
-				GetPosition (out listpos_x, out listpos_y);
+				int listpos_x = 0, listpos_y = 0;
+				while (listpos_x == 0)
+					GetPosition (out listpos_x, out listpos_y);
 				int vert = listpos_y + rect.Y;
 				
 				int lvWidth, lvHeight;




More information about the Monodevelop-patches-list mailing list