2005-01-26 Mike Kestner <mkestner@novell.com>
* gtk/NodeView.cs : always use CreateNativeObject. svn path=/trunk/gtk-sharp/; revision=39603
This commit is contained in:
parent
33cb5d82b4
commit
e601006aa3
2 changed files with 9 additions and 9 deletions
|
@ -1,3 +1,7 @@
|
|||
2005-01-26 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* gtk/NodeView.cs : always use CreateNativeObject.
|
||||
|
||||
2005-01-26 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* generator/*.cs : refactoring of Parameters class. Added IEnumerable
|
||||
|
|
|
@ -37,15 +37,11 @@ namespace Gtk {
|
|||
|
||||
public NodeView (NodeStore store) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType() != typeof (NodeView)) {
|
||||
string[] names = { "model" };
|
||||
GLib.Value[] vals = { new GLib.Value (store) };
|
||||
CreateNativeObject (names, vals);
|
||||
vals [0].Dispose ();
|
||||
} else {
|
||||
Raw = gtk_tree_view_new_with_model (store.Handle);
|
||||
}
|
||||
|
||||
string[] names = { "model" };
|
||||
GLib.Value[] vals = { new GLib.Value (this, "model") };
|
||||
vals [0].Val = store;
|
||||
CreateNativeObject (names, vals);
|
||||
vals [0].Dispose ();
|
||||
this.store = store;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue