[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Gtk2::Gdk::Keysyms vs Gtk2::Gdk->keyval_from_name
- From: Torsten Schoenfeld <kaffeetisch gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: Gtk2::Gdk::Keysyms vs Gtk2::Gdk->keyval_from_name
- Date: Sun, 18 Nov 2007 19:47:52 +0100
On Fri, 2007-11-16 at 11:15 +1100, Kevin Ryde wrote:
> As a suggestion, it'd be nice if the docs for Gtk2::Gdk::Keysyms cross
> referenced Gtk2::Gdk->keyval_from_name and ->keyval_name. I suspect
> those two functions can cover various uses of that Keysyms hash (the
> examples in the synopsis for instance! :-).
Good suggestion. Committed the attached patch. Thanks!
--
Bye,
-Torsten
Index: tools/genkeysyms.pl
===================================================================
RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2/tools/genkeysyms.pl,v
retrieving revision 1.3
diff -u -d -p -r1.3 genkeysyms.pl
--- tools/genkeysyms.pl 17 Oct 2007 10:39:13 -0000 1.3
+++ tools/genkeysyms.pl 18 Nov 2007 18:44:48 -0000
@@ -68,7 +68,9 @@ usable as an accelerator, or when you do
trying to write an easter egg, or whatever.
As the list of keycodes is quite large and rather rarely used in application
-code, we've put it in a separately-loaded module to save space.
+code, we've put it in a separately-loaded module to save space. As an
+alternative, you might want to investigate L<Gtk2::Gdk->keyval_from_name> which
+offers basically the same functionality as the hash.
To get a list of all available keys, either dump C<%Gtk2::Gdk::Keysyms>, or
look at the source of this module with C<perldoc -m Gtk2::Gdk::Keysyms>.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]