diff options
author | David Karlaš <david.karlas@xamarin.com> | 2014-11-25 17:15:16 +0300 |
---|---|---|
committer | David Karlaš <david.karlas@xamarin.com> | 2014-11-25 17:15:16 +0300 |
commit | ef7ecbd3a80bbdeb00ee53ed974b494faeb31ce4 (patch) | |
tree | 63cbb1a67d89b272bbeb2056c297a111acb949ca /main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/GenericPreviewVisualizer.cs | |
parent | 6c1089034738400830e7385d81f2400f85ac0e95 (diff) |
[DebuggerVisualizers] Disabled preview on strings that are not ellipsized and improved PreviewWindow UI(padding, colors, font size..)
Diffstat (limited to 'main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/GenericPreviewVisualizer.cs')
-rw-r--r-- | main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/GenericPreviewVisualizer.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/GenericPreviewVisualizer.cs b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/GenericPreviewVisualizer.cs index 705e4d6655..ad0c2d609a 100644 --- a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/GenericPreviewVisualizer.cs +++ b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/GenericPreviewVisualizer.cs @@ -49,7 +49,7 @@ namespace MonoDevelop.Debugger.PreviewVisualizers if (label.SizeRequest ().Width > 500) { label.WidthRequest = 500; label.Wrap = true; - label.LineWrapMode = Pango.WrapMode.Word; + label.LineWrapMode = Pango.WrapMode.WordChar; } else { label.Justify = Gtk.Justification.Center; } @@ -57,7 +57,7 @@ namespace MonoDevelop.Debugger.PreviewVisualizers label.Justify = Gtk.Justification.Left; var line15 = label.Layout.GetLine (15); if (line15 != null) { - label.Text = value.Substring (0, line15.StartIndex).TrimEnd ('\r', '\n') + "\n..."; + label.Text = value.Substring (0, line15.StartIndex).TrimEnd ('\r', '\n') + "\n…"; } } label.Show (); |