[hyena] Gui: add protected ctors to fix part of bgo#630537



commit b67097af422a75aef6eca233b015ac85410d5f14
Author: Andres G. Aragoneses <knocte gmail com>
Date:   Fri Oct 21 11:35:56 2011 +0100

    Gui: add protected ctors to fix part of bgo#630537
    
    One of the exceptions reported in bgo#630537 is
    easy to fix by adding this protected ctors that
    accept a raw IntPtr.

 .../Accessibility/ListViewAccessible.cs            |    4 ++++
 Hyena.Gui/Hyena.Gui/BaseWidgetAccessible.cs        |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible.cs b/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible.cs
index 12de9cd..336d68e 100644
--- a/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible.cs
@@ -63,6 +63,10 @@ namespace Hyena.Data.Gui.Accessibility
             ListViewAccessible_Table ();
         }
 
+        protected ListViewAccessible (IntPtr raw) : base (raw)
+        {
+        }
+
         protected override Atk.StateSet OnRefStateSet ()
         {
             Atk.StateSet states = base.OnRefStateSet ();
diff --git a/Hyena.Gui/Hyena.Gui/BaseWidgetAccessible.cs b/Hyena.Gui/Hyena.Gui/BaseWidgetAccessible.cs
index 1553728..1bba6ca 100644
--- a/Hyena.Gui/Hyena.Gui/BaseWidgetAccessible.cs
+++ b/Hyena.Gui/Hyena.Gui/BaseWidgetAccessible.cs
@@ -52,6 +52,10 @@ namespace Hyena.Gui
             widget.AddNotification ("visible",   (o, a) => NotifyStateChange (StateType.Visible, widget.Visible));
         }
 
+        protected BaseWidgetAccessible (IntPtr raw) : base (raw)
+        {
+        }
+
         public virtual new Atk.Layer Layer {
             get { return Layer.Widget; }
         }



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