[gnome-games/wip/exalm/platform-preferences: 11/30] platform: Add get_preferences()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/platform-preferences: 11/30] platform: Add get_preferences()
- Date: Tue, 1 Jan 2019 18:48:04 +0000 (UTC)
commit 1c45383944aee9053caac3d549684ffbb43d084d
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Tue Sep 25 22:06:10 2018 +0500
platform: Add get_preferences()
src/core/platform.vala | 2 ++
src/dummy/dummy-platform.vala | 4 ++++
src/generic/generic-platform.vala | 4 ++++
3 files changed, 10 insertions(+)
---
diff --git a/src/core/platform.vala b/src/core/platform.vala
index 9d907872..0b661772 100644
--- a/src/core/platform.vala
+++ b/src/core/platform.vala
@@ -5,6 +5,8 @@ public interface Games.Platform : Object {
public abstract string get_name ();
+ public abstract PreferencesPage get_preferences ();
+
public static uint hash (Platform platform) {
return str_hash (platform.get_id ());
}
diff --git a/src/dummy/dummy-platform.vala b/src/dummy/dummy-platform.vala
index 696d7b96..36f5d2a3 100644
--- a/src/dummy/dummy-platform.vala
+++ b/src/dummy/dummy-platform.vala
@@ -8,4 +8,8 @@ public class Games.DummyPlatform : Object, Platform {
public string get_name () {
return _("Unknown");
}
+
+ public PreferencesPage get_preferences () {
+ return new PreferencesPageDummyPlatform ();
+ }
}
diff --git a/src/generic/generic-platform.vala b/src/generic/generic-platform.vala
index 18c6e90f..b2ef5f03 100644
--- a/src/generic/generic-platform.vala
+++ b/src/generic/generic-platform.vala
@@ -16,4 +16,8 @@ public class Games.GenericPlatform : Object, Platform {
public string get_name () {
return name;
}
+
+ public PreferencesPage get_preferences () {
+ return new PreferencesPageDummyPlatform ();
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]