summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authoresoleyman <emil@soleyman.com>2019-05-24 14:18:07 -0500
committeresoleyman <emil@soleyman.com>2019-05-28 09:45:36 -0500
commit68b69ab4a4548dc9eb94b89c0174f5a4253a4d7d (patch)
tree781ce42d726a9c2e5ce5ad741afce61cca6ea951 /data
parent3e40d6f1831ae45779ca17bebce8e58b32a3cad4 (diff)
downloadcheese-68b69ab4a4548dc9eb94b89c0174f5a4253a4d7d.tar.gz
Added Keyboard Shortcuts window
Coalesce the small, yet disparate shortcut keys available to users in a separate window. https://gitlab.gnome.org/GNOME/cheese/issues/9
Diffstat (limited to 'data')
-rw-r--r--data/headerbar.ui4
-rw-r--r--data/org.gnome.Cheese.gresource.xml1
-rw-r--r--data/shortcuts.ui60
3 files changed, 65 insertions, 0 deletions
diff --git a/data/headerbar.ui b/data/headerbar.ui
index f2fb0475..8068b472 100644
--- a/data/headerbar.ui
+++ b/data/headerbar.ui
@@ -13,6 +13,10 @@
</section>
<section>
<item>
+ <attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
+ <attribute name="action">app.shortcuts</attribute>
+ </item>
+ <item>
<attribute name="accel">F1</attribute>
<attribute name="label" translatable="yes">_Help</attribute>
<attribute name="action">app.help</attribute>
diff --git a/data/org.gnome.Cheese.gresource.xml b/data/org.gnome.Cheese.gresource.xml
index 00c2d29c..439800fc 100644
--- a/data/org.gnome.Cheese.gresource.xml
+++ b/data/org.gnome.Cheese.gresource.xml
@@ -5,6 +5,7 @@
<file>cheese-viewport.json</file>
<file preprocess="xml-stripblanks">cheese-main-window.ui</file>
<file preprocess="xml-stripblanks">cheese-prefs.ui</file>
+ <file preprocess="xml-stripblanks">shortcuts.ui</file>
<file preprocess="xml-stripblanks">headerbar.ui</file>
<file>pixmaps/cheese-1.svg</file>
<file>pixmaps/cheese-2.svg</file>
diff --git a/data/shortcuts.ui b/data/shortcuts.ui
new file mode 100644
index 00000000..3c1d0a07
--- /dev/null
+++ b/data/shortcuts.ui
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <object class="GtkShortcutsWindow" id="shortcuts-cheese">
+ <property name="modal">1</property>
+ <child>
+ <object class="GtkShortcutsSection">
+ <property name="visible">1</property>
+ <property name="section-name">shortcuts</property>
+ <property name="max-height">12</property>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="title" translatable="yes">Overview</property>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="accelerator">F11</property>
+ <property name="title" translatable="yes">Fullscreen on / off</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="accelerator">&lt;ctrl&gt;Q</property>
+ <property name="title" translatable="yes">Quit the application</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="visible">1</property>
+ <property name="title" translatable="yes">Thumbnails</property>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="accelerator">&lt;ctrl&gt;O</property>
+ <property name="title" translatable="yes">Open</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="accelerator">&lt;ctrl&gt;S</property>
+ <property name="title" translatable="yes">Save As</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="accelerator">Delete</property>
+ <property name="title" translatable="yes">Move to Trash</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="accelerator">&lt;Shift&gt;Delete</property>
+ <property name="title" translatable="yes">Delete</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>