Commit ab5d4056 authored by AndreiLisita's avatar AndreiLisita 🎮 Committed by AndreiLisita

shortcuts-window: List the savestates shortcuts

parent d6e511a9
Pipeline #113608 passed with stages
in 15 minutes and 18 seconds
......@@ -14,6 +14,13 @@
<object class="GtkShortcutsGroup">
<property name="title" translatable="yes">General</property>
<property name="visible">True</property>
<child>
<object class="GtkShortcutsShortcut" id="general_shortcut_alt_left">
<property name="visible">True</property>
<property name="title" translatable="yes" context="shortcut window">Go back</property>
<property name="accelerator">&lt;alt&gt;Left &lt;alt&gt;Right</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
......@@ -88,22 +95,36 @@
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
<property name="title" translatable="yes" context="shortcut window">Toggle fullscreen</property>
<property name="accelerator">&lt;Primary&gt;F F11</property>
<property name="title" translatable="yes" context="shortcut window">Create new savestate</property>
<property name="accelerator">&lt;ctrl&gt;S F2</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
<property name="title" translatable="yes" context="shortcut window">Exit fullscreen</property>
<property name="accelerator">Escape</property>
<property name="title" translatable="yes" context="shortcut window">Load the latest savestate</property>
<property name="accelerator">&lt;ctrl&gt;D F3</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut" id="ingame_shortcut_alt_left">
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
<property name="title" translatable="yes" context="shortcut window">Go back to the collection</property>
<property name="accelerator">&lt;alt&gt;Left &lt;alt&gt;Right</property>
<property name="title" translatable="yes" context="shortcut window">Show savestates</property>
<property name="accelerator">&lt;ctrl&gt;A F4</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
<property name="title" translatable="yes" context="shortcut window">Toggle fullscreen</property>
<property name="accelerator">&lt;Primary&gt;F F11</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
<property name="title" translatable="yes" context="shortcut window">Exit fullscreen</property>
<property name="accelerator">Escape</property>
</object>
</child>
<child>
......
......@@ -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 ? "<alt>Left" : "<alt>Right";
general_shortcut_alt_left.accelerator = get_direction () == Gtk.TextDirection.LTR ? "<alt>Left" : "<alt>Right";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment