[hyena] Add protected IntPtr ctor to ListView



commit e5193c8af87d01e3c4cf5b2e175dfc7ca3b019f8
Author: Ruben Vermeersch <ruben savanne be>
Date:   Tue Apr 6 20:17:36 2010 +0200

    Add protected IntPtr ctor to ListView
    
    Needed when a signal is raised after the object has been destroyed.
    Not sure if this is our bug (see novell bugzilla link).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=614996
    https://bugzilla.novell.com/show_bug.cgi?id=594100

 src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView.cs  |    4 ++++
 .../Hyena.Data.Gui/ListView/ListViewBase.cs        |    8 ++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView.cs b/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView.cs
index 8c500da..e5398c6 100644
--- a/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView.cs
+++ b/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView.cs
@@ -32,6 +32,10 @@ namespace Hyena.Data.Gui
 {
     public partial class ListView<T> : ListViewBase, IListView<T>
     {
+        protected ListView (IntPtr ptr) : base (ptr)
+        {
+        }
+
         public ListView ()
         {
             column_layout = new Pango.Layout (PangoContext);
diff --git a/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListViewBase.cs b/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListViewBase.cs
index ca4c281..da18c63 100644
--- a/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListViewBase.cs
+++ b/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListViewBase.cs
@@ -33,6 +33,14 @@ namespace Hyena.Data.Gui
 {
     public class ListViewBase : Widget
     {
+        protected ListViewBase (IntPtr ptr) : base (ptr)
+        {
+        }
+
+        public ListViewBase ()
+        {
+        }
+
         public void QueueDirtyRegion (Gdk.Rectangle region)
         {
             region.Intersect (Allocation);



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