[gnome-games] gamepad: Add GamepadViewConfiguration



commit 493cba9c1c467cd844d0391a8bba5dac406fc1b3
Author: theawless <theawless gmail com>
Date:   Fri Jun 30 23:18:44 2017 +0530

    gamepad: Add GamepadViewConfiguration
    
    This provides svg information to GamepadView so it can be used for
    multiple svgs.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=780754

 src/Makefile.am                        |    1 +
 src/ui/gamepad-view-configuration.vala |   11 +++++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index b635a81..22924e3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -144,6 +144,7 @@ gnome_games_SOURCES = \
        ui/error-info-bar.vala \
        ui/game-icon-view.vala \
        ui/game-thumbnail.vala \
+       ui/gamepad-view-configuration.vala \
        ui/media-selector.vala \
        ui/media-menu-button.vala \
        ui/preferences-page.vala \
diff --git a/src/ui/gamepad-view-configuration.vala b/src/ui/gamepad-view-configuration.vala
new file mode 100644
index 0000000..fb3be00
--- /dev/null
+++ b/src/ui/gamepad-view-configuration.vala
@@ -0,0 +1,11 @@
+// This file is part of GNOME Games. License: GPL-3.0+.
+
+private struct Games.GamepadInputPath {
+       GamepadInput input;
+       string path;
+}
+
+private struct Games.GamepadViewConfiguration {
+       string svg_path;
+       GamepadInputPath[] input_paths;
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]