diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-10-22 14:31:06 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-10-22 14:32:50 -0400 |
commit | 67a54bf4ef8fd164cbd76bd5d1e98c053a5fe7bf (patch) | |
tree | ad61884515699a6f3df1600655ee6432a4f44ddd /gtk/gtkshortcutsshortcut.c | |
parent | 6cf7c03334826fa14d808fee6b1f1618d80687db (diff) | |
download | gtk+-67a54bf4ef8fd164cbd76bd5d1e98c053a5fe7bf.tar.gz |
shortcuts: Support ranges in the display of shortcuts
Repeating Alt-1 to Alt-9 as individual shortcuts looks really boring,
so allow compressing such ranges by specifying <Alt>1...9.
Diffstat (limited to 'gtk/gtkshortcutsshortcut.c')
-rw-r--r-- | gtk/gtkshortcutsshortcut.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk/gtkshortcutsshortcut.c b/gtk/gtkshortcutsshortcut.c index c14eb0a455..b77b8bd178 100644 --- a/gtk/gtkshortcutsshortcut.c +++ b/gtk/gtkshortcutsshortcut.c @@ -185,9 +185,14 @@ gtk_shortcuts_shortcut_class_init (GtkShortcutsShortcutClass *klass) * The accelerator(s) represented by this object, in the syntax * understood by gtk_accelerator_parse(). Multiple accelerators * can be specified by separating them with a space, but keep in - * mind that the available width is limited. + * mind that the available width is limited. It is also possible + * to specify ranges of shortcuts, using ... between the keys. * - * Here is an example: <ctrl>? F1 + * Examples: + * + * - A single shortcut: <ctrl><alt>delete + * - Two alternative shortcuts: <shift>a Home + * - A range: <alt>1...9 * * Note that < and > need to escaped as < and > when used * in .ui files. |