[Monodevelop-patches-list] r2340 - trunk/MonoDevelop/Core/src/MonoDevelop.Dock
Todd Berman <tberman@sevenl.net>
tberman at mono-cvs.ximian.com
Sun Mar 13 14:32:07 EST 2005
Author: tberman
Date: 2005-03-13 14:32:07 -0500 (Sun, 13 Mar 2005)
New Revision: 2340
Modified:
trunk/MonoDevelop/Core/src/MonoDevelop.Dock/ChangeLog
trunk/MonoDevelop/Core/src/MonoDevelop.Dock/DockItemGrip.cs
Log:
2005-03-12 Todd Berman <tberman at off.net>
* DockItemGrip.cs: use .SetMarkup, not .SetText
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Dock/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Dock/ChangeLog 2005-03-13 19:16:51 UTC (rev 2339)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Dock/ChangeLog 2005-03-13 19:32:07 UTC (rev 2340)
@@ -1,3 +1,7 @@
+2005-03-12 Todd Berman <tberman at off.net>
+
+ * DockItemGrip.cs: use .SetMarkup, not .SetText
+
2005-03-13 Lluis Sanchez Gual <lluis at novell.com>
* DockItemGrip.cs, DockMaster.cs: Fix potential memory leaks.
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Dock/DockItemGrip.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Dock/DockItemGrip.cs 2005-03-13 19:16:51 UTC (rev 2339)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Dock/DockItemGrip.cs 2005-03-13 19:32:07 UTC (rev 2340)
@@ -122,7 +122,7 @@
set {
title = value;
if (layout != null)
- layout.SetText (Title);
+ layout.SetMarkup (Title);
}
}
@@ -353,7 +353,7 @@
{
// no room to draw anything
if (width < 1) {
- layout.SetText ("");
+ layout.SetMarkup ("");
return;
}
@@ -366,10 +366,10 @@
// not enough room for ...
int ell_w, ell_h;
Pango.Layout ell = layout.Copy ();
- ell.SetText ("...");
+ ell.SetMarkup ("...");
ell.GetPixelSize (out ell_w, out ell_h);
if (width < ell_w) {
- layout.SetText ("");
+ layout.SetMarkup ("");
return;
}
@@ -382,7 +382,7 @@
// Console.WriteLine ("length: {0} index: {1} trailing: {2}", layout.Text.Length, index, trailing);
// FIXME: breaks on accented chars
if (index < layout.Text.Length)
- layout.SetText (layout.Text.Substring (0, index) + "...");
+ layout.SetMarkup (layout.Text.Substring (0, index) + "...");
}
}
@@ -428,7 +428,7 @@
}
if (TitleWindow != null) {
- layout.SetText (title);
+ layout.SetMarkup (title);
Gdk.Rectangle area = TitleArea;
titleWindow.MoveResize (area.X, area.Y,area.Width, area.Height);
More information about the Monodevelop-patches-list
mailing list