From: Alexis Laferrière Date: Sun, 13 Sep 2015 19:09:03 +0000 (-0400) Subject: lib/linux: move simulating the lifecycle of an app from mnit to app.nit X-Git-Tag: v0.7.8~26^2~6 X-Git-Url: http://nitlanguage.org lib/linux: move simulating the lifecycle of an app from mnit to app.nit Signed-off-by: Alexis Laferrière --- diff --git a/lib/linux/linux.nit b/lib/linux/linux.nit index 8b90102..04a0c5d 100644 --- a/lib/linux/linux.nit +++ b/lib/linux/linux.nit @@ -18,3 +18,25 @@ module linux import app + +redef class App + redef fun setup + do + super + + on_create + on_restore_state + on_start + on_resume + end + + redef fun run + do + super + + on_pause + on_save_state + on_stop + on_destroy + end +end diff --git a/lib/mnit/linux/linux_app.nit b/lib/mnit/linux/linux_app.nit index 938bfd8..7bc03a0 100644 --- a/lib/mnit/linux/linux_app.nit +++ b/lib/mnit/linux/linux_app.nit @@ -35,21 +35,6 @@ redef class App display = new Opengles1Display super - - on_create - on_restore_state - on_start - on_resume - end - - redef fun run - do - super - - on_pause - on_save_state - on_stop - on_destroy end redef fun generate_input