From 30e12e913044fd32b7be0da78e0a5955d0deba8b Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Sat, 21 Sep 2002 21:06:22 +0000 Subject: [PATCH] 2002-09-21 Miguel de Icaza * gtk/TreeView.custom: Add Model.set to the TreeView svn path=/trunk/gtk-sharp/; revision=7708 --- ChangeLog | 4 ++++ gtk/TreeView.custom | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 93d1ea834..1eb52b668 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-09-21 Miguel de Icaza + + * gtk/TreeView.custom: Add Model.set to the TreeView + 2002-09-21 Rachel Hestilow * parser/gapi2xml.pl: Adjust enum regex to allow negative values. diff --git a/gtk/TreeView.custom b/gtk/TreeView.custom index b12afff2e..a1daa57b6 100644 --- a/gtk/TreeView.custom +++ b/gtk/TreeView.custom @@ -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); + /// Model Property /// Gets the model being displayed by the TreeView /// @@ -19,4 +22,8 @@ Gtk.TreeModel ret = (Gtk.TreeModel) GLib.Object.GetObject (raw_ret); return ret; } + + set { + gtk_tree_view_set_model (Value.Handle); + } }