[banshee/stable-2.2] ThickClient: MissingIntPtrCtorException fix



commit e428ed02b963e357276d2c8592b36aa5b7eee808
Author: Andres G. Aragoneses <knocte gmail com>
Date:   Fri Oct 21 13:47:32 2011 +0100

    ThickClient: MissingIntPtrCtorException fix
    
    More low hanging fruit, this time for bgo#645991,
    adding some protected ctors to avoid glib#
    exceptions.

 .../Banshee.Collection.Gui/BaseTrackListView.cs    |    4 ++++
 .../Banshee.Collection.Gui/SearchableListView.cs   |    8 ++++++++
 .../Banshee.Collection.Gui/TrackListView.cs        |    4 ++++
 3 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/BaseTrackListView.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/BaseTrackListView.cs
index b3b041d..5886ed7 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/BaseTrackListView.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/BaseTrackListView.cs
@@ -82,6 +82,10 @@ namespace Banshee.Collection.Gui
             };
         }
 
+        protected BaseTrackListView (IntPtr raw) : base (raw)
+        {
+        }
+
         public override bool SelectOnRowFound {
             get { return true; }
         }
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/SearchableListView.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/SearchableListView.cs
index 40b1fa7..cba7dc2 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/SearchableListView.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/SearchableListView.cs
@@ -44,6 +44,14 @@ namespace Banshee.Collection.Gui
 {
     public class SearchableListView<T> : ListView<T>
     {
+        protected SearchableListView () : base ()
+        {
+        }
+
+        protected SearchableListView (IntPtr raw) : base (raw)
+        {
+        }
+
         private EntryPopup search_popup;
 
         private long previous_search_offset;
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/TrackListView.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/TrackListView.cs
index 4128fca..aa5e7aa 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/TrackListView.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/TrackListView.cs
@@ -53,6 +53,10 @@ namespace Banshee.Collection.Gui
             default_column_controller = new DefaultColumnController ();
         }
 
+        protected TrackListView (IntPtr raw) : base (raw)
+        {
+        }
+
         public override void SetModel (IListModel<TrackInfo> value, double vpos)
         {
             //Console.WriteLine ("TrackListView.SetModel for {0} with vpos {1}", value, vpos);



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