diff --git a/ChangeLog b/ChangeLog index ceaec38d4..89d1b79b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-05-07 Mike Kestner + + * gtk/Gtk.metadata : hide TextView with_buffer ctor. map some parms + to props. + * gtk/Makefile.am : add new custom. + * gtk/TextView.custom : implement with_buffer ctor for subclassing. + 2004-05-07 Todd Berman * gnome/Gnome.metadata: Hide Druid with_window ctor, map About property. diff --git a/gtk/Gtk.metadata b/gtk/Gtk.metadata index 69e121401..3261e8ee1 100644 --- a/gtk/Gtk.metadata +++ b/gtk/Gtk.metadata @@ -174,6 +174,8 @@ 1 1 1 + n_columns + n_rows Attach 1 1 @@ -206,6 +208,7 @@ ProcessEvent 1 TextEvent + 1 out out out @@ -213,6 +216,7 @@ 1 Toggle 1 + model out out out diff --git a/gtk/TextView.custom b/gtk/TextView.custom index 8b1378917..b1aba6d9c 100644 --- a/gtk/TextView.custom +++ b/gtk/TextView.custom @@ -1 +1,22 @@ +// Gtk.TextView.custom - Gtk TextView class customizations +// +// Author: Mike Kestner +// +// Copyright (C) 2004 Novell, Inc. +// +// This code is inserted after the automatically generated code. + + [DllImport ("libgtk-win32-2.0-0.dll")] + static extern IntPtr gtk_text_view_new_with_buffer (IntPtr buffer); + + public TextView (TextBuffer buffer) : base (IntPtr.Zero) + { + if (GetType() != typeof (TextView)) { + CreateNativeObject (new string [0], new GLib.Value [0]); + Buffer = buffer; + return; + } + + Raw = gtk_text_view_new_with_buffer (buffer.Handle); + }