[sound-juicer] Add a shourtcuts window
- From: Phillip Wood <pwood src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sound-juicer] Add a shourtcuts window
- Date: Mon, 15 Feb 2016 10:34:18 +0000 (UTC)
commit 7d0e098f0784181dd6c1758627eae394a0e13a94
Author: Phillip Wood <phillip wood dunelm org uk>
Date: Mon Feb 1 11:03:09 2016 +0000
Add a shourtcuts window
This increases the required Gtk version to 3.20 (although it will run
on earlier versions but the shortcuts will be action disabled).
https://bugzilla.gnome.org/show_bug.cgi?id=761567
configure.ac | 2 +-
data/sound-juicer-menu.ui | 4 ++
data/sound-juicer-shortcuts.ui | 96 +++++++++++++++++++++++++++++++++++++++
data/sound-juicer.gresource.xml | 1 +
po/POTFILES.in | 1 +
5 files changed, 103 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index cd2a916..2c54da8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,7 +32,7 @@ IT_PROG_INTLTOOL([0.50.0])
GNOME_COMPILE_WARNINGS([maximum])
-GTK_REQUIRED=3.14.0
+GTK_REQUIRED=3.19.6
GLIB_GSETTINGS
# Find glib-compile-resources
diff --git a/data/sound-juicer-menu.ui b/data/sound-juicer-menu.ui
index 477c146..e6bb788 100644
--- a/data/sound-juicer-menu.ui
+++ b/data/sound-juicer-menu.ui
@@ -36,6 +36,10 @@
</section>
<section>
<item>
+ <attribute name="label" translatable="yes">Shortcuts</attribute>
+ <attribute name="action">win.show-help-overlay</attribute>
+ </item>
+ <item>
<attribute name="label" translatable="yes">Help</attribute>
<attribute name="action">app.help</attribute>
<attribute name="accel">F1</attribute>
diff --git a/data/sound-juicer-shortcuts.ui b/data/sound-juicer-shortcuts.ui
new file mode 100644
index 0000000..6537776
--- /dev/null
+++ b/data/sound-juicer-shortcuts.ui
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <object class="GtkShortcutsWindow" id="help_overlay">
+ <property name="modal">1</property>
+ <property name="section-name">shortcuts</property>
+ <child>
+ <object class="GtkShortcutsSection">
+ <property name="visible">1</property>
+ <property name="section-name">shortcuts</property>
+ <property name="max-height">5</property>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="visible">1</property>
+ <property name="title" translatable="yes" context="shortcut window">Disc</property>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><Primary>r</property>
+ <property name="title" translatable="yes" context="shortcut window">Reread track
names</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><Primary>j</property>
+ <property name="title" translatable="yes" context="shortcut window">Eject disc</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><Primary>p</property>
+ <property name="title" translatable="yes" context="shortcut window">Toggle
playback</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><Primary>n</property>
+ <property name="title" translatable="yes" context="shortcut window">Next track</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><Primary>b</property>
+ <property name="title" translatable="yes" context="shortcut window">Previous track</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="visible">1</property>
+ <property name="title" translatable="yes" context="shortcut window">General</property>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator">F1</property>
+ <property name="title" translatable="yes" context="shortcut window">Help</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><Primary>F1</property>
+ <property name="title" translatable="yes" context="shortcut window">Shortcuts help</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><Primary>q</property>
+ <property name="title" translatable="yes" context="shortcut window">Quit</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><Primary>a</property>
+ <property name="title" translatable="yes" context="shortcut window">Select all
tracks</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator"><Primary><Shift>a</property>
+ <property name="title" translatable="yes" context="shortcut window">Unselect all
tracks</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/data/sound-juicer.gresource.xml b/data/sound-juicer.gresource.xml
index ed79d99..b48dfbc 100644
--- a/data/sound-juicer.gresource.xml
+++ b/data/sound-juicer.gresource.xml
@@ -3,5 +3,6 @@
<gresource prefix="/org/gnome/sound-juicer">
<file preprocess="xml-stripblanks">sound-juicer.ui</file>
<file alias="gtk/menus.ui" preprocess="xml-stripblanks">sound-juicer-menu.ui</file>
+ <file alias="gtk/help-overlay.ui" preprocess="xml-stripblanks">sound-juicer-shortcuts.ui</file>
</gresource>
</gresources>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 7337616..44d1a1c 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -6,6 +6,7 @@ data/sound-juicer.desktop.in.in
data/appdata/sound-juicer.appdata.xml.in
[type: gettext/glade]data/sound-juicer.ui
[type: gettext/glade]data/sound-juicer-menu.ui
+[type: gettext/glade]data/sound-juicer-shortcuts.ui
libjuicer/sj-error.c
libjuicer/sj-extractor.c
libjuicer/sj-metadata.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]