[Gtk-sharp-list] Another parameter type correction?
John Luke
jluke@users.sourceforge.net
Wed, 07 Jan 2004 15:00:06 -0500
--=-R74LOOvHVGmQuFFAP6a1
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Wed, 2004-01-07 at 02:22 -0700, Seth Kurtzberg wrote:
> Hello again.
>
> The second argument to Dialog.AddActionWidget is type int. I believe
> it should be Gtk.ResponseType.
>
In this case I think you need methods with both args, the enum for
convenience, and the int for user defined responses not available in the
enum. Attached is a patch that add an overload for passing Gtk.
ResponseType as a convenience.
Thanks.
--=-R74LOOvHVGmQuFFAP6a1
Content-Disposition: attachment; filename=dialog.diff
Content-Type: text/x-patch; name=dialog.diff; charset=UTF-8
Content-Transfer-Encoding: 7bit
Index: Dialog.custom
===================================================================
RCS file: /cvs/public/gtk-sharp/gtk/Dialog.custom,v
retrieving revision 1.5
diff -u -r1.5 Dialog.custom
--- Dialog.custom 6 Oct 2003 20:54:27 -0000 1.5
+++ Dialog.custom 7 Jan 2004 19:44:44 -0000
@@ -29,3 +29,8 @@
get { return GLib.Object.GetObject (gtksharp_dialog_get_action_area (this.Handle), false) as HButtonBox; }
}
+public void AddActionWidget (Widget child, ResponseType response)
+{
+ this.AddActionWidget (child, (int) response);
+}
+
--=-R74LOOvHVGmQuFFAP6a1--