[Gtk-sharp-list] more Dialog overloads for Gtk.ResponseType
John Luke
jluke@users.sourceforge.net
Tue, 13 Jan 2004 15:04:18 -0500
--=-4D28Cem+tGwUImI0tx/d
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hello,
A couple more overloads for using Gtk.ResponseType as well as int in
Gtk.Dialog.AddButton and Gtk.Dialog.Repond ()
--=-4D28Cem+tGwUImI0tx/d
Content-Disposition: attachment; filename=dialog.diff
Content-Type: text/x-patch; name=dialog.diff; charset=UTF-8
Content-Transfer-Encoding: 7bit
? button.diff
? dialog.diff
? gdk_key.diff
? radiobutton.diff
? test.diff
? widget_gtkaccelkey.diff
Index: Dialog.custom
===================================================================
RCS file: /cvs/public/gtk-sharp/gtk/Dialog.custom,v
retrieving revision 1.6
diff -u -r1.6 Dialog.custom
--- Dialog.custom 8 Jan 2004 02:40:36 -0000 1.6
+++ Dialog.custom 12 Jan 2004 01:41:40 -0000
@@ -34,3 +34,13 @@
this.AddActionWidget (child, (int) response);
}
+public void AddButton (string button_text, ResponseType response)
+{
+ this.AddButton (button_text, (int) response);
+}
+
+public void Respond (ResponseType response)
+{
+ this.Respond ((int) response);
+}
+
--=-4D28Cem+tGwUImI0tx/d--