summaryrefslogtreecommitdiff
path: root/gtk/gtkaccelgroup.c
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2010-04-16 21:26:25 +0300
committerStefan Kost <ensonic@users.sf.net>2010-04-16 21:30:47 +0300
commitd4a159d488344e4087eaa1dae5c4a0aa4b633173 (patch)
treee113b6059b4493cb535747c731a622f909a0e597 /gtk/gtkaccelgroup.c
parentedfcc3dd418cad6d65b5a64eaa5cd0188a982ac9 (diff)
downloadgtk+-d4a159d488344e4087eaa1dae5c4a0aa4b633173.tar.gz
[docs] improve docs for gtk_accelerator_parse().
Link to gdk_keyval_from_name() and give example for non obvious accelerator strings.
Diffstat (limited to 'gtk/gtkaccelgroup.c')
-rw-r--r--gtk/gtkaccelgroup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkaccelgroup.c b/gtk/gtkaccelgroup.c
index d5d9b53a96..9dbab6f586 100644
--- a/gtk/gtkaccelgroup.c
+++ b/gtk/gtkaccelgroup.c
@@ -1131,6 +1131,9 @@ is_hyper (const gchar *string)
* "&lt;Release&gt;z" (the last one is for key release).
* The parser is fairly liberal and allows lower or upper case,
* and also abbreviations such as "&lt;Ctl&gt;" and "&lt;Ctrl&gt;".
+ * Key names are parsed using gdk_keyval_from_name(). For character keys the
+ * name is not the symbol, but the lowercase name, e.g. one would use
+ * "&lt;Ctrl&gt;minus" instead of "&lt;Ctrl&gt;-".
*
* If the parse fails, @accelerator_key and @accelerator_mods will
* be set to 0 (zero).