[Monodevelop-patches-list] r595 - in trunk/MonoDevelop/src: Libraries/ICSharpCode.TextEditor/src/Gui Main/Base/Gui/Dialogs
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Tue Jan 20 01:50:08 EST 2004
Author: jluke
Date: 2004-01-20 01:50:07 -0500 (Tue, 20 Jan 2004)
New Revision: 595
Modified:
trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextArea.cs
trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/WordCountDialog.cs
Log:
fix WordCountDialog
dont use extra Gdk.Drawable variable since
you can just use .GdkWindow
Modified: trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextArea.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextArea.cs 2004-01-20 06:16:12 UTC (rev 594)
+++ trunk/MonoDevelop/src/Libraries/ICSharpCode.TextEditor/src/Gui/TextArea.cs 2004-01-20 06:50:07 UTC (rev 595)
@@ -303,14 +303,13 @@
System.Drawing.Rectangle clipRectangle = drect;
- Gdk.Drawable g = GdkWindow;
GdkWindow.BeginPaintRect(grect);
/*
if (this.TextEditorProperties.UseAntiAliasedFont) {
- g.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
+ GdkWindow.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
} else {
- g.TextRenderingHint = TextRenderingHint.SystemDefault;
+ GdkWindow.TextRenderingHint = TextRenderingHint.SystemDefault;
}*/
foreach (AbstractMargin margin in leftMargins) {
@@ -327,7 +326,7 @@
currentXPos += margin.DrawingPosition.Width;
if (clipRectangle.IntersectsWith(marginRectangle)) {
marginRectangle.Intersect(clipRectangle);
- margin.Paint(g, marginRectangle);
+ margin.Paint(GdkWindow, marginRectangle);
}
}
}
@@ -339,7 +338,7 @@
}
if (clipRectangle.IntersectsWith(textViewArea)) {
textViewArea.Intersect(clipRectangle);
- textView.Paint(g, textViewArea);
+ textView.Paint(GdkWindow, textViewArea);
}
if (adjustScrollBars) {
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/WordCountDialog.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/WordCountDialog.cs 2004-01-20 06:16:12 UTC (rev 594)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/WordCountDialog.cs 2004-01-20 06:50:07 UTC (rev 595)
@@ -13,7 +13,6 @@
using ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.Core.Properties;
-
using ICSharpCode.Core.Services;
using ICSharpCode.SharpDevelop.Internal.Project;
using ICSharpCode.SharpDevelop.Services;
@@ -291,7 +290,9 @@
this.Title = "Word Count";
Button startButton = new Button (Stock.Execute);
startButton.Clicked += new EventHandler (startEvent);
- this.AddActionWidget (startButton, 7);
+
+ // dont emit response
+ this.ActionArea.PackStart (startButton);
this.AddButton (Stock.Cancel, (int) ResponseType.Cancel);
More information about the Monodevelop-patches-list
mailing list