From 9d8263d89debeb4afb8153b3b2f4534507029a32 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Fri, 24 Sep 2004 15:58:05 +0000 Subject: [PATCH] 2004-09-24 Mike Kestner * gtk/Bin.custom : make Child get/set. * gtk/Gtk.metadata : hide the Bin.get_child method. [Fixes #66232] svn path=/trunk/gtk-sharp/; revision=34364 --- ChangeLog | 6 ++++++ doc/en/Gtk/Bin.xml | 29 +++++++++++++++-------------- gtk/Bin.custom | 43 +++++++++++++++++++++++++++++++++++++++++++ gtk/Gtk.metadata | 2 +- gtk/Makefile.am | 1 + 5 files changed, 66 insertions(+), 15 deletions(-) create mode 100644 gtk/Bin.custom diff --git a/ChangeLog b/ChangeLog index 5ef3c67e7..4540d6fb1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-09-24 Mike Kestner + + * gtk/Bin.custom : make Child get/set. + * gtk/Gtk.metadata : hide the Bin.get_child method. + [Fixes #66232] + 2004-09-23 Mike Kestner * gtk/Widget.custom : new OnSetScrollAdjustments VM. diff --git a/doc/en/Gtk/Bin.xml b/doc/en/Gtk/Bin.xml index f97e3507c..a112b2f97 100644 --- a/doc/en/Gtk/Bin.xml +++ b/doc/en/Gtk/Bin.xml @@ -173,19 +173,6 @@ class Y { - - - Property - - Gtk.Widget - - - - Gets the one and only child widget of this Bin object. - a - - - Property @@ -224,5 +211,19 @@ class Y { Chain to this constructor if you have not manually registered a native value for your subclass. + + + Property + + Gtk.Widget + + + + Accesses the one and only child widget of this Bin object. + a + + + + - \ No newline at end of file + diff --git a/gtk/Bin.custom b/gtk/Bin.custom new file mode 100644 index 000000000..4b721ce79 --- /dev/null +++ b/gtk/Bin.custom @@ -0,0 +1,43 @@ +// Gtk.Bin.custom - Gtk Bin class customizations +// +// Author: Mike Kestner +// +// Copyright (C) 2004 Novell, Inc. +// +// This code is inserted after the automatically generated code. +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the Lesser GNU General +// Public License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + + + [DllImport("libgtk-win32-2.0-0.dll")] + static extern IntPtr gtk_bin_get_child(IntPtr raw); + + public new Gtk.Widget Child { + get { + IntPtr raw_ret = gtk_bin_get_child(Handle); + Gtk.Widget ret; + if (raw_ret == IntPtr.Zero) + ret = null; + else + ret = (Gtk.Widget) GLib.Object.GetObject(raw_ret); + return ret; + } + set { + GLib.Value val = new GLib.Value(value); + SetProperty("child", val); + val.Dispose (); + } + } + diff --git a/gtk/Gtk.metadata b/gtk/Gtk.metadata index a6b530f72..ec746091f 100644 --- a/gtk/Gtk.metadata +++ b/gtk/Gtk.metadata @@ -73,7 +73,7 @@ Change ChangeValue 1 - 1 + 1 PackEnd PackStart 1 diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 0b28c8044..64fade6ef 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -31,6 +31,7 @@ customs = \ Accel.custom \ AccelKey.custom \ Adjustment.custom \ + Bin.custom \ Button.custom \ Calendar.custom \ CellRenderer.custom \