Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVsevolod Kukol <sevoku@microsoft.com>2020-01-09 18:14:13 +0300
committerVsevolod Kukol <sevoku@microsoft.com>2020-01-09 18:14:13 +0300
commitab76725996853774d9534b5d0b81452d64e0607b (patch)
treec5b16fb6cafee6469a8d94bbd46f312dd36b74de
parent232eb67190a73f45e8dd9e7e9ee251c36d23d44e (diff)
[VCS] Add a11y titles to Diff view
Fixes VSTS #810330
-rw-r--r--main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/ComparisonWidget.cs13
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 };