[gnome-calendar] project: add a shortcuts window
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] project: add a shortcuts window
- Date: Tue, 16 Feb 2016 20:26:52 +0000 (UTC)
commit 4ce918c9aa69296f9649c7b3b48c5b94ac173316
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Feb 16 18:25:43 2016 -0200
project: add a shortcuts window
And with this, we finish the last big UI change
that will land for 3.20.
data/calendar.gresource.xml | 1 +
data/ui/help-overlay.ui | 115 +++++++++++++++++++++++++++++++++++++++++++
data/ui/menus.ui | 4 ++
3 files changed, 120 insertions(+), 0 deletions(-)
---
diff --git a/data/calendar.gresource.xml b/data/calendar.gresource.xml
index c456eb2..bae71e8 100644
--- a/data/calendar.gresource.xml
+++ b/data/calendar.gresource.xml
@@ -16,5 +16,6 @@
<gresource prefix="/org/gnome/calendar/gtk">
<file alias="menus.ui" compressed="true" preprocess="xml-stripblanks">ui/menus.ui</file>
+ <file alias="help-overlay.ui" compressed="true" preprocess="xml-stripblanks">ui/help-overlay.ui</file>
</gresource>
</gresources>
diff --git a/data/ui/help-overlay.ui b/data/ui/help-overlay.ui
new file mode 100644
index 0000000..2525fe3
--- /dev/null
+++ b/data/ui/help-overlay.ui
@@ -0,0 +1,115 @@
+<?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="visible">True</property>
+ <property name="section-name">shortcuts</property>
+ <property name="max-height">17</property>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">General</property>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">New event</property>
+ <property name="accelerator"><Primary>N</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">Close window</property>
+ <property name="accelerator"><Primary>Q</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">Search</property>
+ <property name="accelerator"><Primary>F</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">Show help</property>
+ <property name="accelerator">F1</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">Shortcuts</property>
+ <property name="accelerator"><Primary>question <Primary>F1</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">Navigation</property>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">Go back</property>
+ <property name="accelerator"><alt>Left</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">Go forward</property>
+ <property name="accelerator"><alt>Right</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">Show today</property>
+ <property name="accelerator"><alt>Down <Primary>T</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">Next view</property>
+ <property name="accelerator"><Primary>Page_Down</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">Previous view</property>
+ <property name="accelerator"><Primary>Page_Up</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">View</property>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">Month view</property>
+ <property name="accelerator"><Primary>2</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">Year view</property>
+ <property name="accelerator"><Primary>3</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/data/ui/menus.ui b/data/ui/menus.ui
index b25f70d..a677c66 100644
--- a/data/ui/menus.ui
+++ b/data/ui/menus.ui
@@ -15,6 +15,10 @@
</section>
<section>
<item>
+ <attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
+ <attribute name="action">win.show-help-overlay</attribute>
+ </item>
+ <item>
<attribute name="label" translatable="yes">_About</attribute>
<attribute name="action">app.about</attribute>
</item>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]