examples: annotate examples
[nit.git] / lib / app / examples / ui_example.nit
index f7dca44..8f4f8f1 100644 (file)
@@ -14,6 +14,7 @@
 
 # User interface example using `app::ui`
 module ui_example is
+       example
        app_name "app.nit UI"
        app_namespace "org.nitlanguage.ui_example"
        android_api_min 21
@@ -84,11 +85,4 @@ class SecondWindow
        var another_label = new Label(parent=layout, text="Close it by tapping the back button.")
 end
 
-redef class App
-       redef fun on_create
-       do
-               # Create the main window
-               push_window new UiExampleWindow
-               super
-       end
-end
+redef fun root_window do return new UiExampleWindow