[gnome-games/wip/exalm/platform-preferences: 11/26] 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/26] platform: Add get_preferences()
- Date: Thu, 27 Sep 2018 16:34:30 +0000 (UTC)
commit ca35a2bbdf27df721fc432ab86cac2654ff99745
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]