From 1d4f5536af1d8db1af625a4b505a2cea4615ac67 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Mon, 27 Sep 2004 19:20:35 +0000 Subject: [PATCH] 2004-09-27 Mike Kestner * gtk/Button.custom : add a ctor (Widget). reworked from patch by John Luke. [Fixes #66228] svn path=/trunk/gtk-sharp/; revision=34441 --- ChangeLog | 6 ++++++ doc/en/Gtk/Button.xml | 17 ++++++++++++++++- gtk/Button.custom | 5 +++++ 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8c9ed646c..f91e0c676 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-09-27 Mike Kestner + + * gtk/Button.custom : add a ctor (Widget). reworked from patch by + John Luke. + [Fixes #66228] + 2004-09-26 Mike Kestner * glib/Idle.cs : proxy hash keys are uints, not ints. diff --git a/doc/en/Gtk/Button.xml b/doc/en/Gtk/Button.xml index a8625c669..61d9664c4 100644 --- a/doc/en/Gtk/Button.xml +++ b/doc/en/Gtk/Button.xml @@ -344,7 +344,7 @@ public class ButtonApp { Whether or not the cursor is inside the button. a , true if the cursor is inside the button. - + @@ -491,5 +491,20 @@ public class ButtonApp { Chain to this constructor if you have manually registered a native value for your subclass. + + + Constructor + + + + + + Constructs a button containing a specified Child widget. + a child + a + + + + diff --git a/gtk/Button.custom b/gtk/Button.custom index f5eff8554..6cc046ec6 100644 --- a/gtk/Button.custom +++ b/gtk/Button.custom @@ -52,3 +52,8 @@ public bool InButton { gtksharp_button_set_in_button (Handle, value ? 1 : 0); } } + +public Button (Widget widget) : this () +{ + Add (widget); +}