summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSabri Ünal <libreajans@gmail.com>2022-12-05 19:35:59 +0300
committerChristopher Davis <brainblasted@disroot.org>2023-02-12 01:37:53 +0000
commit5a263a75212cb5315e19838263d8f8fe9f27db20 (patch)
tree557615dada3ac4686b0c507c8ef8b89d0ca40fe1
parent2a5c07c5f9f1ac1a27bb7a145357b5a40c31da81 (diff)
downloadbaobab-5a263a75212cb5315e19838263d8f8fe9f27db20.tar.gz
help-overlay: Use action-name properties
Use action-name properties to avoid repeating shortcut assignments.
-rw-r--r--data/gtk/help-overlay.ui14
1 files changed, 7 insertions, 7 deletions
diff --git a/data/gtk/help-overlay.ui b/data/gtk/help-overlay.ui
index 9503027..42c9bcf 100644
--- a/data/gtk/help-overlay.ui
+++ b/data/gtk/help-overlay.ui
@@ -11,26 +11,26 @@
<property name="title" translatable="yes" context="shortcut window">General</property>
<child>
<object class="GtkShortcutsShortcut">
- <property name="accelerator">F1</property>
+ <property name="action-name">win.help</property>
<property name="title" translatable="yes" context="shortcut window">Show help</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
- <property name="accelerator">F10</property>
+ <property name="action-name">win.show-primary-menu</property>
<property name="title" translatable="yes" context="shortcut window">Show / Hide primary menu</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
+ <property name="action-name">app.quit</property>
<property name="title" translatable="yes" context="shortcut window">Quit</property>
- <property name="accelerator">&lt;Primary&gt;Q</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
+ <property name="action-name">win.show-help-overlay</property>
<property name="title" translatable="yes" context="shortcut window">Show Keyboard Shortcuts</property>
- <property name="accelerator">&lt;Primary&gt;question</property>
</object>
</child>
<child>
@@ -41,7 +41,7 @@
</child>
<child>
<object class="GtkShortcutsShortcut">
- <property name="accelerator">&lt;Alt&gt;Left</property>
+ <property name="action-name">win.show-home-page</property>
<property name="title" translatable="yes" context="shortcut window">Go back to location list</property>
</object>
</child>
@@ -52,13 +52,13 @@
<property name="title" translatable="yes" context="shortcut window">Scanning</property>
<child>
<object class="GtkShortcutsShortcut">
- <property name="accelerator">&lt;Primary&gt;o</property>
+ <property name="action-name">win.scan-folder</property>
<property name="title" translatable="yes" context="shortcut window">Scan folder</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
- <property name="accelerator">&lt;Primary&gt;r</property>
+ <property name="action-name">win.reload</property>
<property name="title" translatable="yes" context="shortcut window">Rescan current location</property>
</object>
</child>