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
path: root/main
diff options
context:
space:
mode:
authorVsevolod Kukol <sevoku@microsoft.com>2020-01-14 16:49:39 +0300
committerGitHub <noreply@github.com>2020-01-14 16:49:39 +0300
commit2f4377d10c8b5fba8d6109d6ede0ef4e86853eb4 (patch)
tree8810318992199a4fbb178dba5f84096e0910678b /main
parent3192f3acd1bf679e4d7c8869aefa99c08756ae3b (diff)
parent26d37261e5eb508037e1aafb589e8ee2f9c864ce (diff)
Merge pull request #9529 from mono/backport-pr-9528-to-release-8.4-a11y
[release-8.4-a11y] [VCS] Add a11y titles to Diff view
Diffstat (limited to 'main')
-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 };