diff options
author | Vsevolod Kukol <sevoku@microsoft.com> | 2020-01-14 16:49:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-14 16:49:30 +0300 |
commit | 4145653a1ff4ad1de6eb7431c55bf168e1b4ec99 (patch) | |
tree | a606b188e3e2c92f3436e4293970bbb977e8342e /main/src | |
parent | d2ff688d5979436c18124d9740a23a831bbb59ae (diff) | |
parent | ab76725996853774d9534b5d0b81452d64e0607b (diff) |
Merge pull request #9528 from mono/fix810330-vcs-diff-a11y
[VCS] Add a11y titles to Diff view
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/ComparisonWidget.cs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/ComparisonWidget.cs b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/ComparisonWidget.cs index dad45ed698..9e5247472b 100644 --- a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/ComparisonWidget.cs +++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/ComparisonWidget.cs @@ -31,6 +31,7 @@ using System.Collections.Generic; using Mono.TextEditor; using MonoDevelop.Ide; using MonoDevelop.Components; +using MonoDevelop.Components.AtkCocoaHelper; using System.ComponentModel; using MonoDevelop.Core; using MonoDevelop.Ide.Gui; @@ -87,6 +88,12 @@ namespace MonoDevelop.VersionControl.Views new MonoTextEditor (new TextDocument (), options), new MonoTextEditor (new TextDocument (), options), }; + editors [0].Accessible.SetShouldIgnore (false); + editors [0].Accessible.SetRole (AtkCocoa.Roles.AXGroup); + editors [0].Accessible.SetTitle (GettextCatalog.GetString ("Comparing Revision Editor")); + editors [1].Accessible.SetShouldIgnore (false); + editors [1].Accessible.SetRole (AtkCocoa.Roles.AXGroup); + editors [1].Accessible.SetTitle (GettextCatalog.GetString ("Original Revision Editor")); if (!viewOnly) { revisionStore = new ListStore (typeof(Revision), typeof (string), typeof (string), typeof (string)); @@ -109,7 +116,8 @@ namespace MonoDevelop.VersionControl.Views originalComboBox.PackStart (authorRenderer, true); originalComboBox.AddAttribute (authorRenderer, "text", 3); - // originalComboBox.AccessibilityTextFormat = GettextCatalog.GetString ("Select original revision, current: {0}"); + originalComboBox.Accessible.SetTitle (GettextCatalog.GetString ("Original Revision")); + originalComboBox.Active = 0; originalComboBox.Sensitive = false; @@ -122,7 +130,8 @@ namespace MonoDevelop.VersionControl.Views diffComboBox.PackStart (authorRenderer, true); diffComboBox.AddAttribute (authorRenderer, "text", 3); - // diffComboBox.AccessibilityTextFormat = GettextCatalog.GetString ("Select diff revision, current: {0}"); + diffComboBox.Accessible.SetTitle (GettextCatalog.GetString ("Compared Revision")); + diffComboBox.Active = 0; diffComboBox.Sensitive = false; this.headerWidgets = new [] { diffComboBox, originalComboBox }; |