a_star: don't crash on deserialization errors and limit static types
[nit.git] / lib / linux / ui.nit
index 1e26f17..8a6cc81 100644 (file)
@@ -64,7 +64,6 @@ redef class App
        do
                app.on_create
                app.on_restore_state
-               app.on_start
                app.on_resume
 
                gtk_main
@@ -72,7 +71,6 @@ redef class App
                app.on_pause
                app.on_stop
                app.on_save_state
-               app.on_destroy
        end
 
        # Spacing between GTK controls, default at 2
@@ -343,3 +341,7 @@ redef class TextInput
                super
        end
 end
+
+redef class Text
+       redef fun open_in_browser do system("xdg-open '{self.escape_to_sh}' &")
+end