diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-10-13 15:00:56 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-10-13 15:02:36 -0400 |
commit | 565b35ac006fcb72afdbb374f219c7b87259e8b1 (patch) | |
tree | 7b452d39abb83e187ed65ce2a322040bb55e3e7d /demos/gtk-demo | |
parent | b6cdc3961a20f2f8be25c67c8eb7a0a4a0bada51 (diff) | |
download | gtk+-565b35ac006fcb72afdbb374f219c7b87259e8b1.tar.gz |
Add new gestures to gtk4-demo
Show the new single-finger swipe gestures in the builder
shortcuts example.
Diffstat (limited to 'demos/gtk-demo')
-rw-r--r-- | demos/gtk-demo/shortcuts-builder.ui | 69 |
1 files changed, 42 insertions, 27 deletions
diff --git a/demos/gtk-demo/shortcuts-builder.ui b/demos/gtk-demo/shortcuts-builder.ui index 20ed76009a..58607fc988 100644 --- a/demos/gtk-demo/shortcuts-builder.ui +++ b/demos/gtk-demo/shortcuts-builder.ui @@ -375,6 +375,7 @@ <child> <object class="GtkShortcutsSection"> <property name="visible">1</property> + <property name="max-height">16</property> <property name="section-name">terminal</property> <property name="title" translatable="yes">Terminal Shortcuts</property> <child> @@ -455,6 +456,43 @@ <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> + + <child> + <object class="GtkShortcutsGroup"> + <property name="visible">1</property> <property name="title" translatable="yes">All gestures</property> <child> @@ -499,41 +537,18 @@ <property name="title" translatable="yes">A stock swipe gesture</property> </object> </child> - - </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> + <property name="shortcut-type">gesture-swipe-left</property> + <property name="title" translatable="yes">A stock swipe gesture</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> + <property name="shortcut-type">gesture-swipe-right</property> + <property name="title" translatable="yes">A stock swipe gesture</property> </object> </child> |