[Monodevelop-patches-list] r574 - trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/CompletionWindow
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Mon Jan 19 16:24:33 EST 2004
Author: tberman
Date: 2004-01-19 16:24:33 -0500 (Mon, 19 Jan 2004)
New Revision: 574
Modified:
trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/CompletionWindow/CompletionWindow.cs
Log:
fixed strange tooltip placement bug, and made code a bit more readable
(GetPosition is more intuitive than listView.GdkWindow.GetOrigin)
Modified: trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/CompletionWindow/CompletionWindow.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/CompletionWindow/CompletionWindow.cs 2004-01-19 20:16:01 UTC (rev 573)
+++ trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/CompletionWindow/CompletionWindow.cs 2004-01-19 21:24:33 UTC (rev 574)
@@ -185,8 +185,6 @@
listView.FocusOutEvent += new FocusOutEventHandler(LostFocusListView);
listView.RowActivated += new RowActivatedHandler(ActivateItem);
listView.AddEvents ((int) (Gdk.EventMask.KeyPressMask));
- listView.Selection.Changed += new EventHandler (RowActivated);
- //listView.SelectedIndexChanged += new EventHandler(SelectedIndexChanged);
/*
Panel buttonPanel = new Panel();
@@ -216,8 +214,9 @@
int tx, ty;
control.ActiveTextAreaControl.TextArea.GdkWindow.GetOrigin(out tx, out ty);
- Move(tx + visualPos.X, ty + visualPos.Y);
- ShowAll ();
+ Move(tx + visualPos.X, ty + visualPos.Y);
+ listView.Selection.Changed += new EventHandler (RowActivated);
+ ShowAll ();
}
string fileName;
@@ -301,7 +300,7 @@
listView.TreeToWidgetCoords (rect.x, rect.y, out x, out y);
int listpos_x, listpos_y;
- listView.GdkWindow.GetOrigin (out listpos_x, out listpos_y);
+ GetPosition (out listpos_x, out listpos_y);
int vert = listpos_y + rect.y;
if (vert > listpos_y + listView.GdkWindow.Size.Height) {
More information about the Monodevelop-patches-list
mailing list