app: update clients to use `root_window`
[nit.git] / examples / calculator / src / calculator.nit
index 6cfb1aa..32799ca 100644 (file)
@@ -32,16 +32,7 @@ import calculator_logic
 # Show debug output?
 fun debug: Bool do return false
 
-redef class App
-       redef fun on_create
-       do
-               if debug then print "App::on_create"
-
-               # Create the main window
-               push_window new CalculatorWindow
-               super
-       end
-end
+redef fun root_window do return new CalculatorWindow
 
 # The main (and only) window of this calculator
 class CalculatorWindow