2004-05-07 Mike Kestner <mkestner@ximian.com>
* gtk/TreeView.custom : make the NodeStore ctor subclassable. svn path=/trunk/gtk-sharp/; revision=26946
This commit is contained in:
parent
6b46f2fb3a
commit
53277261b0
2 changed files with 14 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-05-07 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* gtk/TreeView.custom : make the NodeStore ctor subclassable.
|
||||
|
||||
2004-05-07 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* gtk/Gtk.metadata : hide SpinButton with_range ctor.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue