[banshee] [a11y] Avoid crash when a11y not enabled
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [a11y] Avoid crash when a11y not enabled
- Date: Sat, 7 Nov 2009 23:13:10 +0000 (UTC)
commit 8208e49617b37daa3ea4dadf4276e05d6f2e3044
Author: Gabriel Burt <gabriel burt gmail com>
Date: Sat Nov 7 15:09:34 2009 -0800
[a11y] Avoid crash when a11y not enabled
.../Hyena.Data.Gui/ListView/ListView_Accessible.cs | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Accessible.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Accessible.cs
index e415762..1c8abc7 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Accessible.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Accessible.cs
@@ -146,7 +146,10 @@ namespace Hyena.Data.Gui
private void AccessibleCellRedrawn (int column, int row)
{
- ((ICellAccessibleParent) Accessible).CellRedrawn (column, row);
+ var accessible = Accessible as ICellAccessibleParent;
+ if (accessible != null) {
+ accessible.CellRedrawn (column, row);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]