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); +}