diff options
author | iain holmes <iain@xamarin.com> | 2017-07-19 16:47:06 +0300 |
---|---|---|
committer | iain holmes <iain@xamarin.com> | 2017-07-19 18:28:35 +0300 |
commit | d12466c2821352fde1549b2d6c19286413347482 (patch) | |
tree | baaad8dd9d5d6dfbdcb71ae40e0b3e0b8aa42cfe /main | |
parent | 64473c768ff327065716806a8190d3b03c1c9488 (diff) |
Stop the error pad resizing column widths constantly
The error pad is constantly resizing the description column, which causes it to recalculate all the column widths,
update all the texts and strings.
This is playing havoc with the accessibility, even with only two errors shown
Instead of resizing the description column as needed, just set it to expand and give it the full width
Diffstat (limited to 'main')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/ErrorListPad.cs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/ErrorListPad.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/ErrorListPad.cs index f7538ac892..0e5eead727 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/ErrorListPad.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/ErrorListPad.cs @@ -631,17 +631,10 @@ namespace MonoDevelop.Ide.Gui.Pads var descriptionCol = view.AppendColumn (GettextCatalog.GetString ("Description"), descriptionCellRenderer); descriptionCol.SetCellDataFunc (descriptionCellRenderer, new Gtk.TreeCellDataFunc (DescriptionDataFunc)); descriptionCol.Resizable = true; - descriptionCellRenderer.WrapMode = Pango.WrapMode.Word; descriptionCellRenderer.PreferedMaxWidth = IdeApp.Workbench.RootWindow.Allocation.Width / 3; + descriptionCellRenderer.WrapWidth = descriptionCellRenderer.PreferedMaxWidth; + descriptionCellRenderer.WrapMode = Pango.WrapMode.Word; - descriptionCol.AddNotification("width", delegate - { - if (descriptionCellRenderer.WrapWidth == descriptionCol.Width) - return; - descriptionCellRenderer.WrapWidth = descriptionCol.Width; - descriptionCol.QueueResize (); - }); - col = view.AppendColumn (GettextCatalog.GetString ("File"), view.TextRenderer); col.SetCellDataFunc (view.TextRenderer, new Gtk.TreeCellDataFunc (FileDataFunc)); col.Resizable = true; |