summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-12-08 12:32:00 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-12-08 12:32:00 -0500
commit8dfad8e2f01958eca27c49882ccca2d8fe0315cc (patch)
tree78f786bb86a3ffcc9d7eb0c086d475de3a919bb5 /demos
parent3ab9d96623bc30678cbffc3bf9ec5133e714e87c (diff)
downloadgtk+-8dfad8e2f01958eca27c49882ccca2d8fe0315cc.tar.gz
gtk-demo: Add an example for direction-dependent shortcuts
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/shortcuts-clocks.ui18
1 files changed, 18 insertions, 0 deletions
diff --git a/demos/gtk-demo/shortcuts-clocks.ui b/demos/gtk-demo/shortcuts-clocks.ui
index 051a4c2bae..5d31a9b44d 100644
--- a/demos/gtk-demo/shortcuts-clocks.ui
+++ b/demos/gtk-demo/shortcuts-clocks.ui
@@ -37,7 +37,24 @@
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
+ <property name="accelerator">&lt;alt&gt;Right</property>
+ <property name="direction">ltr</property>
+ <property name="title" translatable="yes">Forward</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator">&lt;ctrl&gt;Left</property>
+ <property name="direction">ltr</property>
+ <property name="title" translatable="yes">Back</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
<property name="accelerator">&lt;alt&gt;Left</property>
+ <property name="direction">rtl</property>
<property name="title" translatable="yes">Forward</property>
</object>
</child>
@@ -45,6 +62,7 @@
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
<property name="accelerator">&lt;ctrl&gt;Right</property>
+ <property name="direction">rtl</property>
<property name="title" translatable="yes">Back</property>
</object>
</child>