[gnome-games] ui: Update ResetGamepadMappingDialog for controllers
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] ui: Update ResetGamepadMappingDialog for controllers
- Date: Fri, 22 Jun 2018 20:43:56 +0000 (UTC)
commit de57cc5dfe0bd09c3dd000be59246d99c9bb99b2
Author: theawless <theawless gmail com>
Date: Wed Jun 6 14:09:24 2018 +0530
ui: Update ResetGamepadMappingDialog for controllers
Now this dialog can be used for resetting gamepad mapping or keyboard
mapping.
data/Makefile.am | 2 +-
data/org.gnome.Games.gresource.xml | 2 +-
...gamepad-mapping-dialog.ui => reset-controller-mapping-dialog.ui} | 6 +++---
po/POTFILES.in | 2 +-
src/Makefile.am | 2 +-
src/ui/gamepad-configurer.vala | 2 +-
src/ui/reset-controller-mapping-dialog.vala | 5 +++++
src/ui/reset-gamepad-mapping-dialog.vala | 5 -----
8 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 98790c7..cc7fb35 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -51,7 +51,7 @@ EXTRA_DIST = \
ui/preferences-window.ui \
ui/quit-dialog.ui \
ui/remote-display.ui \
- ui/reset-gamepad-mapping-dialog.ui \
+ ui/reset-controller-mapping-dialog.ui \
ui/resume-dialog.ui \
ui/resume-failed-dialog.ui \
ui/search-bar.ui \
diff --git a/data/org.gnome.Games.gresource.xml b/data/org.gnome.Games.gresource.xml
index 7be7b6a..2443a7c 100644
--- a/data/org.gnome.Games.gresource.xml
+++ b/data/org.gnome.Games.gresource.xml
@@ -30,7 +30,7 @@
<file preprocess="xml-stripblanks">ui/preferences-window.ui</file>
<file preprocess="xml-stripblanks">ui/quit-dialog.ui</file>
<file preprocess="xml-stripblanks">ui/remote-display.ui</file>
- <file preprocess="xml-stripblanks">ui/reset-gamepad-mapping-dialog.ui</file>
+ <file preprocess="xml-stripblanks">ui/reset-controller-mapping-dialog.ui</file>
<file preprocess="xml-stripblanks">ui/resume-dialog.ui</file>
<file preprocess="xml-stripblanks">ui/resume-failed-dialog.ui</file>
<file preprocess="xml-stripblanks">ui/search-bar.ui</file>
diff --git a/data/ui/reset-gamepad-mapping-dialog.ui b/data/ui/reset-controller-mapping-dialog.ui
similarity index 87%
rename from data/ui/reset-gamepad-mapping-dialog.ui
rename to data/ui/reset-controller-mapping-dialog.ui
index f6c594b..7124936 100644
--- a/data/ui/reset-gamepad-mapping-dialog.ui
+++ b/data/ui/reset-controller-mapping-dialog.ui
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="3.16"/>
- <template class="GamesResetGamepadMappingDialog" parent="GtkMessageDialog">
+ <template class="GamesResetControllerMappingDialog" parent="GtkMessageDialog">
<property name="modal">True</property>
<property name="destroy-with-parent">True</property>
<property name="type_hint">dialog</property>
<property name="message_type">question</property>
- <property name="text" translatable="yes">Factory reset mapping for this gamepad?</property>
+ <property name="text" translatable="yes">Factory reset mapping for this controller?</property>
<property name="secondary_text" translatable="yes">Your mapping will be lost.</property>
<child type="action">
<object class="GtkButton" id="button_cancel">
@@ -18,7 +18,7 @@
<child type="action">
<object class="GtkButton" id="button_reset">
<property name="visible">True</property>
- <property name="label" translatable="yes" context="Confirm gamepad configuration factory
reset">Reset</property>
+ <property name="label" translatable="yes" context="Confirm controller configuration factory
reset">Reset</property>
<style>
<class name="destructive-action"/>
</style>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index fde78ed..7aec10d 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -18,7 +18,7 @@ data/org.gnome.Games.gschema.xml
[type: gettext/glade]data/ui/preferences-window.ui
[type: gettext/glade]data/ui/quit-dialog.ui
[type: gettext/glade]data/ui/remote-display.ui
-[type: gettext/glade]data/ui/reset-gamepad-mapping-dialog.ui
+[type: gettext/glade]data/ui/reset-controller-mapping-dialog.ui
[type: gettext/glade]data/ui/resume-dialog.ui
[type: gettext/glade]data/ui/resume-failed-dialog.ui
plugins/desktop/src/desktop-plugin.vala
diff --git a/src/Makefile.am b/src/Makefile.am
index 2d1b776..4a20ccf 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -139,7 +139,7 @@ gnome_games_SOURCES = \
ui/preferences-window.vala \
ui/quit-dialog.vala \
ui/remote-display.vala \
- ui/reset-gamepad-mapping-dialog.vala \
+ ui/reset-controller-mapping-dialog.vala \
ui/resume-dialog.vala \
ui/resume-failed-dialog.vala \
ui/search-bar.vala \
diff --git a/src/ui/gamepad-configurer.vala b/src/ui/gamepad-configurer.vala
index 377c464..c124c2e 100644
--- a/src/ui/gamepad-configurer.vala
+++ b/src/ui/gamepad-configurer.vala
@@ -162,7 +162,7 @@ private class Games.GamepadConfigurer : Gtk.Box {
}
private void reset_mapping () {
- var message_dialog = new ResetGamepadMappingDialog ();
+ var message_dialog = new ResetControllerMappingDialog ();
message_dialog.set_transient_for ((Gtk.Window) get_toplevel ());
message_dialog.response.connect ((response) => {
switch (response) {
diff --git a/src/ui/reset-controller-mapping-dialog.vala b/src/ui/reset-controller-mapping-dialog.vala
new file mode 100644
index 0000000..ab6b595
--- /dev/null
+++ b/src/ui/reset-controller-mapping-dialog.vala
@@ -0,0 +1,5 @@
+// This file is part of GNOME Games. License: GPL-3.0+.
+
+[GtkTemplate (ui = "/org/gnome/Games/ui/reset-controller-mapping-dialog.ui")]
+public class Games.ResetControllerMappingDialog : Gtk.MessageDialog {
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]