From ab5d40568a0cd22fb74736129afbdcf0f956e012 Mon Sep 17 00:00:00 2001 From: Yetizone Date: Fri, 16 Aug 2019 21:29:26 +0300 Subject: [PATCH] shortcuts-window: List the savestates shortcuts --- data/ui/shortcuts-window.ui | 35 ++++++++++++++++++++++++++++------- src/ui/shortcuts-window.vala | 5 +++-- 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/data/ui/shortcuts-window.ui b/data/ui/shortcuts-window.ui index 76a42e38..a3c6a92a 100644 --- a/data/ui/shortcuts-window.ui +++ b/data/ui/shortcuts-window.ui @@ -14,6 +14,13 @@ General True + + + True + Go back + <alt>Left <alt>Right + + True @@ -88,22 +95,36 @@ True - Toggle fullscreen - <Primary>F F11 + Create new savestate + <ctrl>S F2 True - Exit fullscreen - Escape + Load the latest savestate + <ctrl>D F3 - + True - Go back to the collection - <alt>Left <alt>Right + Show savestates + <ctrl>A F4 + + + + + True + Toggle fullscreen + <Primary>F F11 + + + + + True + Exit fullscreen + Escape diff --git a/src/ui/shortcuts-window.vala b/src/ui/shortcuts-window.vala index b4dc2c0f..5c883467 100644 --- a/src/ui/shortcuts-window.vala +++ b/src/ui/shortcuts-window.vala @@ -3,7 +3,7 @@ [GtkTemplate (ui = "/org/gnome/Games/ui/shortcuts-window.ui")] private class Games.ShortcutsWindow : Gtk.ShortcutsWindow { [GtkChild] - private Gtk.ShortcutsShortcut ingame_shortcut_alt_left; + private Gtk.ShortcutsShortcut general_shortcut_alt_left; construct { update_direction (); @@ -11,6 +11,7 @@ private class Games.ShortcutsWindow : Gtk.ShortcutsWindow { [GtkCallback] private void update_direction () { - ingame_shortcut_alt_left.accelerator = get_direction () == Gtk.TextDirection.LTR ? "Left" : "Right"; + general_shortcut_alt_left.accelerator = get_direction () == Gtk.TextDirection.LTR ? "Left" : "Right"; } } + -- GitLab