[Monodevelop-patches-list] r646 - trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/CompletionWindow
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Jan 25 02:39:50 EST 2004
Author: tberman
Date: 2004-01-25 02:39:50 -0500 (Sun, 25 Jan 2004)
New Revision: 646
Modified:
trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/CompletionWindow/CompletionWindow.cs
trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/CompletionWindow/DeclarationViewWindow.cs
Log:
cleaned out a C.WL, and now it resizes properly.
This is prolly not the most performant way of doing that, but it works until someone comes up with something better.
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-25 06:12:49 UTC (rev 645)
+++ trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/CompletionWindow/CompletionWindow.cs 2004-01-25 07:39:50 UTC (rev 646)
@@ -312,10 +312,14 @@
//FIXME: This is a bad calc, its always on the right, it needs to test if thats too big, and if so, place on the left;
int horiz = listpos_x + listView.GdkWindow.Size.Width + 30;
ICompletionDataWithMarkup wMarkup = data as ICompletionDataWithMarkup;
- if (wMarkup != null)
+ declarationviewwindow.Destroy ();
+ if (wMarkup != null) {
+ declarationviewwindow = new DeclarationViewWindow ();
declarationviewwindow.DescriptionMarkup = wMarkup.DescriptionPango;
- else
+ } else {
+ declarationviewwindow = new DeclarationViewWindow ();
declarationviewwindow.DescriptionMarkup = data.Description;
+ }
declarationviewwindow.ShowAll ();
declarationviewwindow.Move (horiz, vert);
Modified: trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/CompletionWindow/DeclarationViewWindow.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/CompletionWindow/DeclarationViewWindow.cs 2004-01-25 06:12:49 UTC (rev 645)
+++ trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/CompletionWindow/DeclarationViewWindow.cs 2004-01-25 07:39:50 UTC (rev 646)
@@ -29,9 +29,8 @@
}
set {
- Console.WriteLine (value);
label.Markup = value;
- QueueDraw ();
+ //QueueDraw ();
}
}
More information about the Monodevelop-patches-list
mailing list