2002-09-21 Miguel de Icaza <miguel@ximian.com>

* gtk/TreeView.custom: Add Model.set to the TreeView

svn path=/trunk/gtk-sharp/; revision=7708
This commit is contained in:
Miguel de Icaza 2002-09-21 21:06:22 +00:00
parent 301db575de
commit 30e12e9130
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2002-09-21 Miguel de Icaza <miguel@ximian.com>
* gtk/TreeView.custom: Add Model.set to the TreeView
2002-09-21 Rachel Hestilow <hestilow@ximian.com>
* parser/gapi2xml.pl: Adjust enum regex to allow negative values.

View file

@ -10,6 +10,9 @@
[DllImport("gtk-x11-2.0")]
static extern IntPtr gtk_tree_view_get_model (IntPtr raw);
[DllImport("gtk-x11-2.0")]
static extern IntPtr gtk_tree_view_set_model (IntPtr raw);
/// <summary>Model Property</summary>
/// <remarks>Gets the model being displayed by the TreeView
/// </remarks>
@ -19,4 +22,8 @@
Gtk.TreeModel ret = (Gtk.TreeModel) GLib.Object.GetObject (raw_ret);
return ret;
}
set {
gtk_tree_view_set_model (Value.Handle);
}
}