[Gtk-sharp-list] [Patch, etc] gdk/EventKey.custom
Charles Iliya Krempeaux
charles@reptile.ca
16 Apr 2003 12:37:15 -0700
--=-LeukNNBD3BN3pnp3vJv4
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hello,
Now that we have all the Gdk.Key stuff. I would be nice
if we could get a Gdk.Key from Gdk.EventKey.
So... here's a .custom file for that. It makes if so you
can do stuff like...
private void KeyPressed(object o, GtkSharp.KeyPressEventArgs args)
{
Gdk.EventKey ek = args.Event;
if (Gdk.Key.Escape == ek.Key) {
Gtk.Application.Quit();
}
}
Is it OK to commit this?
See ya
--
Charles Iliya Krempeaux, BSc
charles@reptile.ca
________________________________________________________________________
Reptile Consulting & Services 604-REPTILE http://www.reptile.ca/
--=-LeukNNBD3BN3pnp3vJv4
Content-Disposition: attachment; filename=gtk-sharp-GdkEventKey.diff
Content-Type: text/x-diff; name=gtk-sharp-GdkEventKey.diff; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
? gdk/EventKey.custom
Index: ChangeLog
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/public/gtk-sharp/ChangeLog,v
retrieving revision 1.380
diff -u -r1.380 ChangeLog
--- ChangeLog 16 Apr 2003 02:26:11 -0000 1.380
+++ ChangeLog 16 Apr 2003 19:34:25 -0000
@@ -1,3 +1,8 @@
+2003-04-16 Charles Iliya Krempeaux <charles@reptile.ca>
+
+ * gdk/EventKey.custom : Created it so that there
+ is a "Key" property that returns a Gdk.Key.
+
2003-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
=20
* gtk/TreeView.custom:
--=-LeukNNBD3BN3pnp3vJv4
Content-Disposition: attachment; filename=gtk-sharp-GdkEventKey.tar.gz
Content-Type: application/x-gzip; name=gtk-sharp-GdkEventKey.tar.gz
Content-Transfer-Encoding: base64
H4sIADKwnT4AA+3S0UqEQBQGYK/nKc5V7N7o5OoKFVFIRGxX9QSmgw7OqowzksS+e2N6E7XUxUIE
/weDw5x/Ro9aFnVwN4jG7MTo57Y37d47NX7O+TaKPO4k28/XSRSG3rSQbMI4jhOXj6KEe8RP/iTf
cC1nmsjLq0wr0R/N/VT/p4KABQGVX/8CNlduralafUHp3D49KDlmtNNi34nMvtLV8l5utOiMVMLP
s+tla9p2o5ZlZWiVrinkfENPc8iVmt4qI5uSzuhZ6EHm7uxHU/hHNh65/RRnjHX2Rcmc7ovadw3Q
NN4YOaUwy2yihbG6odWSW5OpZO/XYhwydfmROrAD++svAgAAAAAAAAAAAAAAAAAAAAAA8DvvtYIV
+QAoAAA=
--=-LeukNNBD3BN3pnp3vJv4--