[gnome-boxes/housekeeping-autumn-2021: 1/8] welcome-tutorial, main: Ensure type of WelcomeTutorial in main




commit 14b1a1eabe2c04c106568dd33c87acacfab662d2
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed Oct 13 10:11:28 2021 +0200

    welcome-tutorial, main: Ensure type of WelcomeTutorial in main
    
    This reverts commit 6a9e0604d0fb284524b2ec861cd2d0a60192050b.

 data/ui/welcome-tutorial.ui | 2 +-
 src/main.vala               | 2 ++
 src/welcome-tutorial.vala   | 2 --
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/ui/welcome-tutorial.ui b/data/ui/welcome-tutorial.ui
index cbe177e7..ba838445 100644
--- a/data/ui/welcome-tutorial.ui
+++ b/data/ui/welcome-tutorial.ui
@@ -36,7 +36,7 @@
                 <signal name="notify::position" handler="on_position_changed"/>
 
                 <child>
-                  <object class="BoxesWelcomeTutorialPage" id="first_page">
+                  <object class="BoxesWelcomeTutorialPage">
                     <property name="title" translatable="yes">Welcome to Boxes</property>
                     <property name="description" translatable="yes">Boxes makes it easy to install and run 
virtual machines.</property>
                     <property name="color">#613583</property>
diff --git a/src/main.vala b/src/main.vala
index ff7e14f3..4282496e 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -71,6 +71,8 @@ public int main (string[] args) {
     Intl.textdomain (GETTEXT_PACKAGE);
     GLib.Environment.set_application_name (_("Boxes"));
 
+    typeof (Boxes.WelcomeTutorial).ensure ();
+
     parse_local_args (ref args);
 
     try {
diff --git a/src/welcome-tutorial.vala b/src/welcome-tutorial.vala
index a7e938c1..be920cae 100644
--- a/src/welcome-tutorial.vala
+++ b/src/welcome-tutorial.vala
@@ -10,8 +10,6 @@
     private unowned Button go_back_button;
     [GtkChild]
     private unowned Button go_next_button;
-    [GtkChild]
-    private unowned Boxes.WelcomeTutorialPage first_page;
 
     private GLib.List<unowned WelcomeTutorialPage> pages;
     private CssProvider provider;


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