aboutsummaryrefslogtreecommitdiff
path: root/main/data/gtk/help-overlay.ui
diff options
context:
space:
mode:
authorChristopher Davis <christopherdavis@gnome.org>2023-07-03 21:55:11 -0400
committerfiaxh <fiaxh@users.noreply.github.com>2023-07-08 11:20:51 +0200
commit3d5dad25d8d400003bea74b4c891f041c01351b5 (patch)
tree7ce3a1c811a239deaec65a9e9cec7f7923bd009c /main/data/gtk/help-overlay.ui
parenta36a63d7e42f5a21ecc3755db2570ce2b379f5ff (diff)
downloaddino-3d5dad25d8d400003bea74b4c891f041c01351b5.tar.gz
dino-3d5dad25d8d400003bea74b4c891f041c01351b5.zip
application: Load help overlay automatically
GTK automatically loads and sets up the action and keyboard shortcut for the Keyboard Shortcuts dialog. We don't need to manually do it as long as we put everything in the right place. See https://docs.gtk.org/gtk4/class.Application.html#automatic-resources
Diffstat (limited to 'main/data/gtk/help-overlay.ui')
-rw-r--r--main/data/gtk/help-overlay.ui68
1 files changed, 68 insertions, 0 deletions
diff --git a/main/data/gtk/help-overlay.ui b/main/data/gtk/help-overlay.ui
new file mode 100644
index 00000000..17b0555c
--- /dev/null
+++ b/main/data/gtk/help-overlay.ui
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <object class="GtkShortcutsWindow" id="help_overlay">
+ <property name="modal">True</property>
+ <child>
+ <object class="GtkShortcutsSection">
+ <property name="section-name">shortcuts</property>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="title" translatable="yes">General</property>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="accelerator">&lt;ctrl&gt;T</property>
+ <property name="title" translatable="yes">Start Conversation</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="accelerator">&lt;ctrl&gt;G</property>
+ <property name="title" translatable="yes">Join Channel</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="accelerator">&lt;ctrl&gt;question</property>
+ <property name="title" translatable="yes">Keyboard shortcuts</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="title" translatable="yes">Conversation</property>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="accelerator">&lt;ctrl&gt;F</property>
+ <property name="title" translatable="yes">Search messages</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="accelerator">&lt;ctrl&gt;U</property>
+ <property name="title" translatable="yes">Send a file</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="title" translatable="yes">Navigation</property>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="accelerator">&lt;ctrl&gt;Tab</property>
+ <property name="title" translatable="yes">Jump to next conversation</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="accelerator">&lt;ctrl&gt;&lt;Shift&gt;Tab</property>
+ <property name="title" translatable="yes">Jump to previous conversation</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>