Author: mkrueger
Date: 2007-10-16 05:12:08 -0400 (Tue, 16 Oct 2007)
New Revision: 87561
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/DefaultMonitorPad.cs
Log:
* MonoDevelop.Ide.Gui.Pads/DefaultMonitorPad.cs: Fixed "Bug 325492 -
application output buggy".
Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog 2007-10-16
07:57:53 UTC (rev 87560)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog 2007-10-16
09:12:08 UTC (rev 87561)
@@ -1,3 +1,8 @@
+2007-10-16 Mike Krüger <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Ide.Gui.Pads/DefaultMonitorPad.cs: Fixed "Bug 325492 -
+ application output buggy".
+
2007-10-15 Mike Krüger <[EMAIL PROTECTED]>
* MonoDevelop.Ide.Gui.Dialogs/ReplaceInFilesDialog.cs: Fixed "Bug
326313 -
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/DefaultMonitorPad.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/DefaultMonitorPad.cs
2007-10-16 07:57:53 UTC (rev 87560)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/DefaultMonitorPad.cs
2007-10-16 09:12:08 UTC (rev 87561)
@@ -172,9 +172,7 @@
indents.Push (null);
if (name != null) {
- TextIter it = buffer.EndIter;
- string txt = "\n" + name + "\n";
- buffer.InsertWithTags (ref it, txt, tag, bold);
+ AddText (Environment.NewLine + name +
Environment.NewLine, bold);
}
}
@@ -197,9 +195,6 @@
void WriteText (string text, TextTag extraTag)
{
AddText (text, extraTag);
-// buffer.MoveMark (buffer.InsertMark, buffer.EndIter);
- if (text.EndsWith ("\n"))
- textEditorControl.ScrollMarkOnscreen
(buffer.InsertMark);
}
public virtual Gtk.Widget Control {
@@ -233,13 +228,16 @@
buttonStop.Sensitive = false;
}
- void AddText (string s, TextTag extraTag)
+ void AddText (string text, TextTag extraTag)
{
TextIter it = buffer.EndIter;
if (extraTag != null)
- buffer.InsertWithTags (ref it, s, tag,
extraTag);
+ buffer.InsertWithTags (ref it, text, tag,
extraTag);
else
- buffer.InsertWithTags (ref it, s, tag);
+ buffer.InsertWithTags (ref it, text, tag);
+
+ if (buffer.EndIter.StartsLine ())
+ textEditorControl.ScrollToIter (buffer.EndIter,
0, false, 0, 0);
}
void Indent ()
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches