Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
import data_store
redef class App
- redef fun setup do init_gtk
+ redef fun setup do gtk_init
# On GNU/Linux, we go through all the callbacks once,
# there is no complex life-cycle.
var window = window
window.native.show_all
- run_gtk
+ gtk_main
app.on_pause
app.on_stop
if sender == but_ok then
print "ok!"
- quit_gtk
+ gtk_main_quit
else if sender == but_cancel then
print "cancel!"
- quit_gtk
+ gtk_main_quit
else
print sender
end
-
end
init
do
- init_gtk
+ gtk_init
win = new GtkWindow(new GtkWindowType.toplevel)
win.connect_destroy_signal_to_quit
if "NIT_TESTING".environ != "true" then
var app = new MyApp
- run_gtk
+ gtk_main
end