Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@novell.com>2010-03-16 13:34:03 +0300
committerMike Krüger <mkrueger@novell.com>2010-03-16 13:34:03 +0300
commitd2aaf5cc2ab176c3aca9d3e0138a34fc4997127c (patch)
treeb3d334cdbc2a2b1f564d39d404d3df4c133d97e5 /main
parent4f1c3dd08a379286a6cc7ee838cc68072b414c43 (diff)
* Mono.TextEditor/TextEditor.cs: fixed 'Bug 588454 - Abysmal
performance of the text editor over VNC'. svn path=/trunk/monodevelop/; revision=153649
Diffstat (limited to 'main')
-rw-r--r--main/src/core/Mono.Texteditor/ChangeLog5
-rw-r--r--main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs7
2 files changed, 8 insertions, 4 deletions
diff --git a/main/src/core/Mono.Texteditor/ChangeLog b/main/src/core/Mono.Texteditor/ChangeLog
index fd5c42ad6f..6e4ce4af0a 100644
--- a/main/src/core/Mono.Texteditor/ChangeLog
+++ b/main/src/core/Mono.Texteditor/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-16 Mike Krüger <mkrueger@novell.com>
+
+ * Mono.TextEditor/TextEditor.cs: fixed 'Bug 588454 - Abysmal
+ performance of the text editor over VNC'.
+
2010-03-15 Michael Hutchinson <mhutchinson@novell.com>
* Mono.TextEditor/TextEditor.cs: Use command-scroll instead of
diff --git a/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs b/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs
index bd22b49c34..ea31983778 100644
--- a/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs
+++ b/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs
@@ -219,17 +219,16 @@ namespace Mono.TextEditor
0, from,
0, to,
Allocation.Width, Allocation.Height - from - to);
+ GdkWindow.Scroll (0, -delta);
renderedLines.Clear ();
if (delta > 0) {
-
delta += LineHeight;
- RenderMargins (buffer, new Gdk.Rectangle (0, Allocation.Height - delta, Allocation.Width, delta));
+ RepaintArea (0, Allocation.Height - delta, Allocation.Width, delta);
} else {
delta -= LineHeight;
- RenderMargins (buffer, new Gdk.Rectangle (0, 0, Allocation.Width, -delta));
+ RepaintArea (0, 0, Allocation.Width, -delta);
}
TextViewMargin.VAdjustmentValueChanged ();
- QueueDraw ();
}
protected override void OnSetScrollAdjustments (Adjustment hAdjustement, Adjustment vAdjustement)