2004-09-24 Mike Kestner <mkestner@ximian.com>

* 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
This commit is contained in:
Mike Kestner 2004-09-24 15:58:05 +00:00
parent 3eb398a12f
commit 9d8263d89d
5 changed files with 66 additions and 15 deletions

View File

@ -1,3 +1,9 @@
2004-09-24 Mike Kestner <mkestner@ximian.com>
* gtk/Bin.custom : make Child get/set.
* gtk/Gtk.metadata : hide the Bin.get_child method.
[Fixes #66232]
2004-09-23 Mike Kestner <mkestner@ximian.com>
* gtk/Widget.custom : new OnSetScrollAdjustments VM.

View File

@ -173,19 +173,6 @@ class Y {
</remarks>
</Docs>
</Member>
<Member MemberName="Child">
<MemberSignature Language="C#" Value="public Gtk.Widget Child { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gtk.Widget</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Gets the one and only child widget of this Bin object.</summary>
<returns>a <see cref="T:Gtk.Widget" /></returns>
<remarks />
</Docs>
</Member>
<Member MemberName="GType">
<MemberSignature Language="C#" Value="public static GLib.GType GType { get; };" />
<MemberType>Property</MemberType>
@ -224,5 +211,19 @@ class Y {
<remarks>Chain to this constructor if you have not manually registered a native <see cref="T:GLib.GType" /> value for your subclass.</remarks>
</Docs>
</Member>
<Member MemberName="Child">
<MemberSignature Language="C#" Value="public Gtk.Widget Child { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gtk.Widget</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Accesses the one and only child widget of this Bin object.</summary>
<returns>a <see cref="T:Gtk.Widget" /></returns>
<remarks>
</remarks>
</Docs>
</Member>
</Members>
</Type>
</Type>

43
gtk/Bin.custom Normal file
View File

@ -0,0 +1,43 @@
// Gtk.Bin.custom - Gtk Bin class customizations
//
// Author: Mike Kestner <mkestner@ximian.com>
//
// 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 ();
}
}

View File

@ -73,7 +73,7 @@
<attr path="/api/namespace/object[@cname='GtkAdjustment']/method[@name='Changed']" name="name">Change</attr>
<attr path="/api/namespace/object[@cname='GtkAdjustment']/method[@name='ValueChanged']" name="name">ChangeValue</attr>
<attr path="/api/namespace/object[@cname='GtkArrow']/method[@name='Set']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkBin']/method[@name='GetChild']" name="new_flag">1</attr>
<attr path="/api/namespace/object[@cname='GtkBin']/method[@name='GetChild']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkBox']/method[@name='PackEndDefaults']" name="name">PackEnd</attr>
<attr path="/api/namespace/object[@cname='GtkBox']/method[@name='PackStartDefaults']" name="name">PackStart</attr>
<attr path="/api/namespace/object[@cname='GtkButton']/constructor[@cname='gtk_button_new_from_stock']" name="hidden">1</attr>

View File

@ -31,6 +31,7 @@ customs = \
Accel.custom \
AccelKey.custom \
Adjustment.custom \
Bin.custom \
Button.custom \
Calendar.custom \
CellRenderer.custom \