Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
import data_store
redef class App
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.
# On GNU/Linux, we go through all the callbacks once,
# there is no complex life-cycle.
var window = window
window.native.show_all
var window = window
window.native.show_all
if sender == but_ok then
print "ok!"
if sender == but_ok then
print "ok!"
else if sender == but_cancel then
print "cancel!"
else if sender == but_cancel then
print "cancel!"
win = new GtkWindow(new GtkWindowType.toplevel)
win.connect_destroy_signal_to_quit
win = new GtkWindow(new GtkWindowType.toplevel)
win.connect_destroy_signal_to_quit
if "NIT_TESTING".environ != "true" then
var app = new MyApp
if "NIT_TESTING".environ != "true" then
var app = new MyApp