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:
authoriain holmes <iain@xamarin.com>2017-04-12 18:17:16 +0300
committeriain holmes <iain@xamarin.com>2017-04-12 18:17:49 +0300
commit2bacf0ea41c33e6b963e0c67c8653b446404b95b (patch)
tree3ee5811545c2a2e03559717baddb68fac792764f /main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AtkCocoaHelper
parent28752bd44c98ac0243096ca82c0bd9514e1a5f63 (diff)
[A11y] Improve the accessibility of the Custom Command Widget
Fixes BXC #53542
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AtkCocoaHelper')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AtkCocoaHelper/AtkCocoaHelper.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AtkCocoaHelper/AtkCocoaHelper.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AtkCocoaHelper/AtkCocoaHelper.cs
index d3ceaa8273..443255181a 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AtkCocoaHelper/AtkCocoaHelper.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AtkCocoaHelper/AtkCocoaHelper.cs
@@ -38,13 +38,17 @@ namespace MonoDevelop.Components.AtkCocoaHelper
{
public static class AtkCocoaExtensions
{
+ public static void SetCommonAttributes (this Atk.Object o, string name, string label, string help)
+ {
+ o.Name = name;
+ o.Description = help;
+ o.SetLabel (label);
+ }
+
public static void SetCommonAccessibilityAttributes (this Gtk.Widget w, string name, string label, string help)
{
var accessible = w.Accessible;
-
- accessible.Name = name;
- accessible.Description = help;
- accessible.SetLabel (label);
+ accessible.SetCommonAttributes (name, label, help);
}
}