[gnome-games/wip/exalm/buildable: 3/6] preferences-page: Implement Gtk.Buildable
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/buildable: 3/6] preferences-page: Implement Gtk.Buildable
- Date: Mon, 15 Oct 2018 18:39:33 +0000 (UTC)
commit 0b6657b7f7889687a1f8267ba1d071386e251610
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sun Oct 14 17:25:50 2018 +0500
preferences-page: Implement Gtk.Buildable
This will be used in the next commit to add a template to PreferencesPage.
src/ui/preferences-page.vala | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/ui/preferences-page.vala b/src/ui/preferences-page.vala
index c92b77d8..f867d16b 100644
--- a/src/ui/preferences-page.vala
+++ b/src/ui/preferences-page.vala
@@ -1,5 +1,11 @@
// This file is part of GNOME Games. License: GPL-3.0+.
-private class Games.PreferencesPage: Gtk.Bin {
+private class Games.PreferencesPage: Gtk.Bin, Gtk.Buildable {
public PreferencesSubpage subpage { get; protected set; }
+
+ public void add_child (Gtk.Builder builder, Object child, string? type) {
+ var widget = child as Gtk.Widget;
+
+ add (widget);
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]