mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-04-29 07:26:37 +00:00
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
|
@ -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>
|
2004-05-07 Mike Kestner <mkestner@ximian.com>
|
||||||
|
|
||||||
* gtk/Gtk.metadata : hide SpinButton with_range ctor.
|
* gtk/Gtk.metadata : hide SpinButton with_range ctor.
|
||||||
|
|
|
@ -12,8 +12,16 @@
|
||||||
|
|
||||||
public TreeView (NodeStore store) : base (IntPtr.Zero)
|
public TreeView (NodeStore store) : base (IntPtr.Zero)
|
||||||
{
|
{
|
||||||
if (GetType() != typeof (TreeView))
|
if (GetType() != typeof (TreeView)) {
|
||||||
throw new InvalidOperationException ("Can't chain to this constructor from subclasses.");
|
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);
|
Raw = gtk_tree_view_new_with_model (store.Handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue