diff options
author | Christopher Davis <christopherdavis@gnome.org> | 2023-07-03 21:55:11 -0400 |
---|---|---|
committer | fiaxh <fiaxh@users.noreply.github.com> | 2023-07-08 11:20:51 +0200 |
commit | 3d5dad25d8d400003bea74b4c891f041c01351b5 (patch) | |
tree | 7ce3a1c811a239deaec65a9e9cec7f7923bd009c /main/data/gtk | |
parent | a36a63d7e42f5a21ecc3755db2570ce2b379f5ff (diff) | |
download | dino-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')
-rw-r--r-- | main/data/gtk/help-overlay.ui | 68 |
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"><ctrl>T</property> + <property name="title" translatable="yes">Start Conversation</property> + </object> + </child> + <child> + <object class="GtkShortcutsShortcut"> + <property name="accelerator"><ctrl>G</property> + <property name="title" translatable="yes">Join Channel</property> + </object> + </child> + <child> + <object class="GtkShortcutsShortcut"> + <property name="accelerator"><ctrl>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"><ctrl>F</property> + <property name="title" translatable="yes">Search messages</property> + </object> + </child> + <child> + <object class="GtkShortcutsShortcut"> + <property name="accelerator"><ctrl>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"><ctrl>Tab</property> + <property name="title" translatable="yes">Jump to next conversation</property> + </object> + </child> + <child> + <object class="GtkShortcutsShortcut"> + <property name="accelerator"><ctrl><Shift>Tab</property> + <property name="title" translatable="yes">Jump to previous conversation</property> + </object> + </child> + </object> + </child> + </object> + </child> + </object> +</interface> |