diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-12-04 10:55:20 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-12-04 10:56:48 -0500 |
commit | 8768c0b8ac1fb6d997ec5708c0d85fa2e0a01148 (patch) | |
tree | 7392eae36733fdb32bf69fddcf6d443c14b414a2 /demos | |
parent | 7fc493a8a89ae2b7df0f2deee90be122bf11fa09 (diff) | |
download | gtk+-8768c0b8ac1fb6d997ec5708c0d85fa2e0a01148.tar.gz |
shortcuts: Extend the accelerator syntax more
Cover cases like left+right control, and render them nicely.
The gtk3-demo builder shortcuts example shows the new
possibilities.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/shortcuts-builder.ui | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/demos/gtk-demo/shortcuts-builder.ui b/demos/gtk-demo/shortcuts-builder.ui index 6b587f2e72..20ed76009a 100644 --- a/demos/gtk-demo/shortcuts-builder.ui +++ b/demos/gtk-demo/shortcuts-builder.ui @@ -502,6 +502,44 @@ </object> </child> + + <child> + <object class="GtkShortcutsGroup"> + <property name="visible">1</property> + <property name="title" translatable="yes">'Special' combinations</property> + + <child> + <object class="GtkShortcutsShortcut"> + <property name="visible">1</property> + <property name="accelerator">t+t</property> + <property name="title" translatable="yes">You want tea ?</property> + </object> + </child> + <child> + <object class="GtkShortcutsShortcut"> + <property name="visible">1</property> + <property name="accelerator"><shift><ctrl></property> + <property name="title" translatable="yes">Shift Control</property> + </object> + </child> + <child> + <object class="GtkShortcutsShortcut"> + <property name="visible">1</property> + <property name="accelerator"><ctrl>&<ctrl></property> + <property name="title" translatable="yes">Control Control</property> + </object> + </child> + <child> + <object class="GtkShortcutsShortcut"> + <property name="visible">1</property> + <property name="accelerator">Control_L&Control_R</property> + <property name="title" translatable="yes">Left and right control</property> + </object> + </child> + + </object> + </child> + </object> </child> </object> |