[hyena] ListViewAccessible: replace dynamic cast with static cast
- From: AndrÃs Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] ListViewAccessible: replace dynamic cast with static cast
- Date: Thu, 13 Sep 2012 22:33:05 +0000 (UTC)
commit 09f5f07fee543cc231cc87da24ac8ebcb78671a8
Author: Andres G. Aragoneses <knocte gmail com>
Date: Thu Sep 13 23:32:58 2012 +0100
ListViewAccessible: replace dynamic cast with static cast
This cast may be the culprit of the cryptic exception raised
which causes bgo#683498. Hopefully the reporter will be able
to test again after this change to check if now an
InvalidCastException is raised, or if what really happens is
that the Parent property of the ListView is null.
.../Accessibility/ListViewAccessible.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible.cs b/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible.cs
index 336d68e..33ca748 100644
--- a/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible.cs
@@ -43,7 +43,7 @@ namespace Hyena.Data.Gui.Accessibility
public ListViewAccessible (GLib.Object widget) : base (widget as Gtk.Widget)
{
- list_view = widget as ListView<T>;
+ list_view = (ListView<T>) widget;
// TODO replace with list_view.Name?
Name = "ListView";
Description = "ListView";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]