[banshee/a11y: 10/27] [a11y] Added basic accessibility to ColumnCellText
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee/a11y: 10/27] [a11y] Added basic accessibility to ColumnCellText
- Date: Tue, 6 Oct 2009 00:21:50 +0000 (UTC)
commit 91fa83dcf0f84d07759acca125a91606c04f4337
Author: Eitan Isaacson <eitan ascender com>
Date: Wed Sep 30 15:56:34 2009 -0700
[a11y] Added basic accessibility to ColumnCellText
.../Accessibility/ColumnCellTextAccessible.cs | 13 +++++++++++++
.../Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs | 12 ++++++++++++
src/Libraries/Hyena.Gui/Hyena.Gui.csproj | 1 +
src/Libraries/Hyena.Gui/Makefile.am | 1 +
4 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ColumnCellTextAccessible.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ColumnCellTextAccessible.cs
new file mode 100644
index 0000000..9e1b883
--- /dev/null
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ColumnCellTextAccessible.cs
@@ -0,0 +1,13 @@
+
+using System;
+
+namespace Hyena.Data.Gui.Accessibility
+{
+ class ColumnCellTextAccessible : ColumnCellAccessible
+ {
+ public ColumnCellTextAccessible (object bound_object, ColumnCellText cell, ICellAccessibleParent parent): base (bound_object, cell as ColumnCell, parent)
+ {
+ Name = cell.GetTextAlternative (bound_object);
+ }
+ }
+}
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs
index b13d06c..0124469 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs
@@ -32,6 +32,7 @@ using Cairo;
using Hyena.Gui;
using Hyena.Gui.Theming;
+using Hyena.Data.Gui.Accessibility;
namespace Hyena.Data.Gui
{
@@ -55,6 +56,17 @@ namespace Hyena.Data.Gui
{
}
+ public override Atk.Object GetAccessible (ICellAccessibleParent parent)
+ {
+ last_text = GetText (BoundObject);
+ return new ColumnCellTextAccessible (BoundObject, this, parent);
+ }
+
+ public override string GetTextAlternative (object obj)
+ {
+ return GetText (obj);
+ }
+
protected void SetMinMaxStrings (object min_max)
{
SetMinMaxStrings (min_max, min_max);
diff --git a/src/Libraries/Hyena.Gui/Hyena.Gui.csproj b/src/Libraries/Hyena.Gui/Hyena.Gui.csproj
index 9621dc4..6ea615e 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Gui.csproj
+++ b/src/Libraries/Hyena.Gui/Hyena.Gui.csproj
@@ -156,6 +156,7 @@
<Compile Include="Hyena.Data.Gui\Accessibility\ICellAccessibleParent.cs" />
<Compile Include="Hyena.Data.Gui\Accessibility\ListViewAccessible_Table.cs" />
<Compile Include="Hyena.Data.Gui\Accessibility\ListViewAccessible_Selection.cs" />
+ <Compile Include="Hyena.Data.Gui\Accessibility\ColumnCellTextAccessible.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
diff --git a/src/Libraries/Hyena.Gui/Makefile.am b/src/Libraries/Hyena.Gui/Makefile.am
index d9952df..1c5d43f 100644
--- a/src/Libraries/Hyena.Gui/Makefile.am
+++ b/src/Libraries/Hyena.Gui/Makefile.am
@@ -4,6 +4,7 @@ TARGET = library
LINK = $(REF_HYENA_GUI)
SOURCES = \
Hyena.Data.Gui/Accessibility/ColumnCellAccessible.cs \
+ Hyena.Data.Gui/Accessibility/ColumnCellTextAccessible.cs \
Hyena.Data.Gui/Accessibility/ICellAccessibleParent.cs \
Hyena.Data.Gui/Accessibility/ListViewAccessible.cs \
Hyena.Data.Gui/Accessibility/ListViewAccessible_Selection.cs \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]