summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2017-12-25 20:25:53 +0100
committerNiels De Graef <nielsdegraef@gmail.com>2017-12-25 20:25:53 +0100
commit7cc93074d58dd138e12f83712d9a604236fbd9d6 (patch)
tree2e8b9ad07f93d04423a639c12069ca6c17d7cec5 /data
parentc378704bf36d6f5b7ac0a55f30ecdd7573a9c732 (diff)
downloadgnome-contacts-7cc93074d58dd138e12f83712d9a604236fbd9d6.tar.gz
Add a shortcuts window.
See also [bug 759582](https://bugzilla.gnome.org/show_bug.cgi?id=759582)
Diffstat (limited to 'data')
-rw-r--r--data/contacts.gresource.xml1
-rw-r--r--data/gtk/help-overlay.ui50
-rw-r--r--data/gtk/menus.ui4
3 files changed, 55 insertions, 0 deletions
diff --git a/data/contacts.gresource.xml b/data/contacts.gresource.xml
index 2cca45b..ba45a0c 100644
--- a/data/contacts.gresource.xml
+++ b/data/contacts.gresource.xml
@@ -3,6 +3,7 @@
<gresource prefix="/org/gnome/Contacts">
<file compressed="true">ui/style.css</file>
<file compressed="true" preprocess="xml-stripblanks">gtk/menus.ui</file>
+ <file compressed="true" preprocess="xml-stripblanks">gtk/help-overlay.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/contacts-accounts-list.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/contacts-address-map.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/contacts-avatar-dialog.ui</file>
diff --git a/data/gtk/help-overlay.ui b/data/gtk/help-overlay.ui
new file mode 100644
index 0000000..044d910
--- /dev/null
+++ b/data/gtk/help-overlay.ui
@@ -0,0 +1,50 @@
+<interface>
+ <object class="GtkShortcutsWindow" id="help_overlay">
+ <child>
+ <object class="GtkShortcutsSection">
+ <property name="visible">1</property>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="visible">1</property>
+ <property name="title">Overview</property>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator">F1</property>
+ <property name="title">Help</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator">&lt;Primary&gt;n</property>
+ <property name="title">Create a new contact</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator">&lt;Primary&gt;f &lt;Primary&gt;s</property>
+ <property name="title">Search</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator">&lt;Primary&gt;question</property>
+ <property name="title">Shortcut list</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator">&lt;Primary&gt;q</property>
+ <property name="title">Quit</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/data/gtk/menus.ui b/data/gtk/menus.ui
index 178ea93..18676b5 100644
--- a/data/gtk/menus.ui
+++ b/data/gtk/menus.ui
@@ -8,6 +8,10 @@
</section>
<section>
<item>
+ <attribute name="action">win.show-help-overlay</attribute>
+ <attribute name="label" translatable="yes">Keyboard Shortcuts</attribute>
+ </item>
+ <item>
<attribute name="action">app.help</attribute>
<attribute name="label" translatable="yes">_Help</attribute>
</item>