[gnome-system-monitor/libreajans/gnome-system-monitor-helpoverlay: 1/2] Add help-overlay.ui and related changes
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor/libreajans/gnome-system-monitor-helpoverlay: 1/2] Add help-overlay.ui and related changes
- Date: Sun, 31 May 2020 06:12:29 +0000 (UTC)
commit 31bdf4e20ea21a39ef6001572cd275772e50dc04
Author: Sabri Ünal <libreajans gmail com>
Date: Sun Feb 9 21:37:37 2020 +0300
Add help-overlay.ui and related changes
data/help-overlay.ui | 150 ++++++++++++++++++++++++++++++++++++++++++++++++++
data/menus.ui | 4 ++
po/POTFILES.in | 1 +
src/gsm.gresource.xml | 1 +
4 files changed, 156 insertions(+)
---
diff --git a/data/help-overlay.ui b/data/help-overlay.ui
new file mode 100644
index 00000000..457e7f1d
--- /dev/null
+++ b/data/help-overlay.ui
@@ -0,0 +1,150 @@
+<?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">13</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="accelerator">F1</property>
+ <property name="title" translatable="yes" context="shortcut window">Show help</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">true</property>
+ <property name="accelerator">F10</property>
+ <property name="title" translatable="yes" context="shortcut window">Open menu</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">true</property>
+ <property name="accelerator"><Primary>question</property>
+ <property name="title" translatable="yes" context="shortcut window">Keyboard
shortcuts</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">true</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">true</property>
+ <property name="accelerator"><Primary>F</property>
+ <property name="title" translatable="yes" context="shortcut window">Search</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">true</property>
+ <property name="accelerator"><Alt>1</property>
+ <property name="title" translatable="yes" context="shortcut window">Show Processes</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">true</property>
+ <property name="accelerator"><Alt>2</property>
+ <property name="title" translatable="yes" context="shortcut window">Show Resources</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">true</property>
+ <property name="accelerator"><Alt>3</property>
+ <property name="title" translatable="yes" context="shortcut window">Show File
Systems</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">true</property>
+ <property name="accelerator"><Primary>R</property>
+ <property name="title" translatable="yes" context="shortcut window">Refresh</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="visible">true</property>
+ <property name="title" translatable="yes" context="shortcut window">Processes</property>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">true</property>
+ <property name="accelerator"><Primary>D</property>
+ <property name="title" translatable="yes" context="shortcut window">Show
dependencies</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">true</property>
+ <property name="accelerator"><Alt>Return</property>
+ <property name="title" translatable="yes" context="shortcut window">Show process
properties</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">true</property>
+ <property name="accelerator"><Primary>M</property>
+ <property name="title" translatable="yes" context="shortcut window">Memory maps</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">true</property>
+ <property name="accelerator"><Primary>O</property>
+ <property name="title" translatable="yes" context="shortcut window">Open files</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">true</property>
+ <property name="accelerator"><Primary>S</property>
+ <property name="title" translatable="yes" context="shortcut window">Send stop
signal</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">true</property>
+ <property name="accelerator"><Primary>C</property>
+ <property name="title" translatable="yes" context="shortcut window">Send continue
signal</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">true</property>
+ <property name="accelerator"><Primary>E</property>
+ <property name="title" translatable="yes" context="shortcut window">Send End
signal</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">true</property>
+ <property name="accelerator"><Primary>K</property>
+ <property name="title" translatable="yes" context="shortcut window">Send Kill
signal</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="visible">true</property>
+ <property name="title" translatable="yes" context="shortcut window">File Systems</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/data/menus.ui b/data/menus.ui
index 94a331bd..534765cb 100644
--- a/data/menus.ui
+++ b/data/menus.ui
@@ -67,6 +67,10 @@
<attribute name="label" translatable="yes">Help</attribute>
<attribute name="action">app.help</attribute>
</item>
+ <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 System Monitor</attribute>
<attribute name="action">win.about</attribute>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 3153f4e4..ecb6d691 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -4,6 +4,7 @@ gnome-system-monitor.desktop.in.in
gnome-system-monitor-kde.desktop.in.in
gnome-system-monitor.appdata.xml.in
org.gnome.gnome-system-monitor.policy.in.in
+data/help-overlay.ui
data/interface.ui
data/lsof.ui
data/menus.ui
diff --git a/src/gsm.gresource.xml b/src/gsm.gresource.xml
index d6b4a8dd..a8abf390 100644
--- a/src/gsm.gresource.xml
+++ b/src/gsm.gresource.xml
@@ -9,5 +9,6 @@
<file preprocess="xml-stripblanks">data/menus.ui</file>
<file preprocess="xml-stripblanks">pixmaps/download.svg</file>
<file preprocess="xml-stripblanks">pixmaps/upload.svg</file>
+ <file preprocess="xml-stripblanks" alias="gtk/help-overlay.ui">data/help-overlay.ui</file>
</gresource>
</gresources>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]