[banshee/a11y: 12/27] [a11y] Added ColumnCellAlbum accessibility.



commit 85c3c365c80f00d6cfb9e39bb7080e0393529c94
Author: Eitan Isaacson <eitan ascender com>
Date:   Wed Sep 30 16:04:19 2009 -0700

    [a11y] Added ColumnCellAlbum accessibility.

 .../Banshee.Collection.Gui/ColumnCellAlbum.cs      |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellAlbum.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellAlbum.cs
index f8d43ca..1afa4d8 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellAlbum.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellAlbum.cs
@@ -33,6 +33,7 @@ using Cairo;
 using Hyena.Gui;
 using Hyena.Gui.Theming;
 using Hyena.Data.Gui;
+using Hyena.Data.Gui.Accessibility;
 
 using Banshee.Gui;
 using Banshee.ServiceStack;
@@ -53,7 +54,23 @@ namespace Banshee.Collection.Gui
         {
             artwork_manager = ServiceManager.Get<ArtworkManager> ();
         }
-    
+
+        private class ColumnCellAlbumAccessible : ColumnCellAccessible
+        {
+            public ColumnCellAlbumAccessible (object bound_object, ColumnCellAlbum cell, ICellAccessibleParent parent): base (bound_object, cell as ColumnCell, parent)
+            {
+                AlbumInfo bound_album_info = (AlbumInfo)bound_object;
+                Name = string.Format("{0} - {1}",
+                                     bound_album_info.DisplayTitle,
+                                     bound_album_info.DisplayArtistName);
+            }
+        }
+
+        public override Atk.Object GetAccessible (ICellAccessibleParent parent)
+        {
+            return new ColumnCellAlbumAccessible (BoundObject, this, parent);
+        }
+
         public override void Render (CellContext context, StateType state, double cellWidth, double cellHeight)
         {
             if (BoundObject == null) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]