[gnome-games/wip/exalm/platform-preferences: 41/46] preferences-window: Add platform pages
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/platform-preferences: 41/46] preferences-window: Add platform pages
- Date: Wed, 20 Feb 2019 17:46:57 +0000 (UTC)
commit 564d90018e50196afaae081e3623344bc2f59655
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Tue Sep 25 20:13:58 2018 +0500
preferences-window: Add platform pages
src/ui/preferences-window.vala | 13 +++++++++++++
1 file changed, 13 insertions(+)
---
diff --git a/src/ui/preferences-window.vala b/src/ui/preferences-window.vala
index 453ff9bf..1ff72570 100644
--- a/src/ui/preferences-window.vala
+++ b/src/ui/preferences-window.vala
@@ -68,9 +68,22 @@ private class Games.PreferencesWindow : Gtk.Window {
private Binding selection_mode_binding;
public PreferencesWindow () {
+ add_platform_pages ();
+
update_ui ();
}
+ private void add_platform_pages () {
+ var register = PlatformRegister.get_register ();
+ var platforms = register.get_all_platforms ();
+
+ foreach (var platform in platforms) {
+ var page = platform.get_preferences ();
+
+ stack.add (page);
+ }
+ }
+
[GtkCallback]
private void sidebar_row_selected () {
content_box.visible_child = stack;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]