summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-04-17 13:41:29 -0400
committerMatthias Clasen <mclasen@redhat.com>2016-04-17 13:42:14 -0400
commit4aa257b66309b5c169fda5d8332e4446f3bffcb2 (patch)
tree1b39539d71ba9507b8b48c8fb24395e1f033b299 /examples
parent50f041bc5750e615aef8ba81ecc7614542989143 (diff)
downloadgtk+-4aa257b66309b5c169fda5d8332e4446f3bffcb2.tar.gz
bloatpad: Make shortcuts window update
This tests the just added functionality to make shortcuts track changes in their actions accelerators.
Diffstat (limited to 'examples')
-rw-r--r--examples/bp/gtk/help-overlay.ui55
1 files changed, 48 insertions, 7 deletions
diff --git a/examples/bp/gtk/help-overlay.ui b/examples/bp/gtk/help-overlay.ui
index ac166b79a7..d9e3398aee 100644
--- a/examples/bp/gtk/help-overlay.ui
+++ b/examples/bp/gtk/help-overlay.ui
@@ -10,33 +10,74 @@
<child>
<object class="GtkShortcutsGroup">
<property name="visible">1</property>
- <property name="title">Shortcuts</property>
+ <property name="title">General</property>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
- <property name="accelerator">&lt;Primary&gt;c</property>
+ <property name="action-name">app.new</property>
+ <property name="title" translatable="yes">New Window</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="action-name">app.quit</property>
+ <property name="title" translatable="yes">Quit</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="action-name">win.fullscreen</property>
+ <property name="title" translatable="yes">Fullscreen</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="action-name">win.show-help-overlay</property>
+ <property name="title" translatable="yes">Shortcuts</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="visible">1</property>
+ <property name="title">Text</property>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="action-name">win.copy</property>
<property name="title" translatable="yes">Copy</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
- <property name="accelerator">&lt;Primary&gt;p</property>
+ <property name="action-name">win.paste</property>
<property name="title" translatable="yes">Paste</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
- <property name="accelerator">F11</property>
- <property name="title" translatable="yes">Fullscreen</property>
+ <property name="action-name">win.justify::left</property>
+ <property name="title" translatable="yes">Justify left</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
- <property name="accelerator">&lt;Primary&gt;q</property>
- <property name="title" translatable="yes">Quit</property>
+ <property name="action-name">win.justify::center</property>
+ <property name="title" translatable="yes">Justify center</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="action-name">win.justify::right</property>
+ <property name="title" translatable="yes">Justify right</property>
</object>
</child>
</object>