From c37cd06fc59778b3d565dd6db4a42b1178093c6d Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Mon, 12 Dec 2005 15:31:54 +0000 Subject: [PATCH] 2005-12-12 Itamar Rogel * NodeView.cs : add default ctor and NodeStore setter. [Fixes #76827] svn path=/trunk/gtk-sharp/; revision=54243 --- ChangeLog | 7 ++++++- doc/en/Gtk/NodeView.xml | 11 ++++++++++- gtk/NodeView.cs | 12 +++++++++--- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7b1790653..2c89c5aa8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ -2005-12-10 Mike Kestner +2005-12-12 Itamar Rogel + + * NodeView.cs : add default ctor and NodeStore setter. + [Fixes #76827] + +2005-12-12 Mike Kestner * generator/Signal.cs : pass byte cnt for autogenerated string length parameters. Thanks to Itamar Rogel for the report and a candidate diff --git a/doc/en/Gtk/NodeView.xml b/doc/en/Gtk/NodeView.xml index eb0f9d616..04a43010f 100644 --- a/doc/en/Gtk/NodeView.xml +++ b/doc/en/Gtk/NodeView.xml @@ -31,7 +31,7 @@ - + Property Gtk.NodeStore @@ -76,5 +76,14 @@ + + + Constructor + + + Public Constructor. + + + diff --git a/gtk/NodeView.cs b/gtk/NodeView.cs index c7a93deb5..5f4e07790 100644 --- a/gtk/NodeView.cs +++ b/gtk/NodeView.cs @@ -18,9 +18,6 @@ // Free Software Foundation, Inc., 59 Temple Place - Suite 330, // Boston, MA 02111-1307, USA. -// This file was generated by the Gtk# code generator. -// Any changes made will be lost if regenerated. - namespace Gtk { using System; @@ -42,10 +39,19 @@ namespace Gtk { this.store = store; } + public NodeView () : base () {} + + [DllImport("libgtk-win32-2.0-0.dll")] + static extern void gtk_tree_view_set_model(IntPtr raw, IntPtr model); + public NodeStore NodeStore { get { return store; } + set { + store = value; + gtk_tree_view_set_model (Handle, store == null ? IntPtr.Zero : store.Handle); + } } public NodeSelection NodeSelection {