diff --git a/ChangeLog b/ChangeLog index 75360fe9c..15fb3423c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-05-07 Mike Kestner + + * gtk/TreeView.custom : make the NodeStore ctor subclassable. + 2004-05-07 Mike Kestner * gtk/Gtk.metadata : hide SpinButton with_range ctor. diff --git a/gtk/TreeView.custom b/gtk/TreeView.custom index 94a859a0d..290bc318e 100644 --- a/gtk/TreeView.custom +++ b/gtk/TreeView.custom @@ -12,8 +12,16 @@ public TreeView (NodeStore store) : base (IntPtr.Zero) { - if (GetType() != typeof (TreeView)) - throw new InvalidOperationException ("Can't chain to this constructor from subclasses."); + if (GetType() != typeof (TreeView)) { + string[] names = new string [1]; + GLib.Value[] vals = new GLib.Value [1]; + names [0] = "model"; + vals [0] = new GLib.Value (store); + CreateNativeObject (names, vals); + vals [0].Dispose (); + return; + } + Raw = gtk_tree_view_new_with_model (store.Handle); }