Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
all:
mkdir -p bin/
- # Compile in global mode to silence warnings on unused GTK deprecated
- ../../bin/nitc --global --dir bin/ src/calculator_gtk.nit src/calculator_test.nit
+ ../../bin/nitc --dir bin/ src/calculator_gtk.nit src/calculator_test.nit
android:
mkdir -p bin/ res/
do
init_gtk
- win = new GtkWindow(0)
+ win = new GtkWindow(new GtkWindowType.toplevel)
+ win.connect_destroy_signal_to_quit
- container = new GtkGrid(5, 5, true)
- win.add(container)
+ container = new GtkGrid
+ win.add container
lbl_disp = new GtkLabel("_")
container.attach(lbl_disp, 0, 0, 5, 1)
do
init_gtk
- win = new GtkWindow( 0 )
+ win = new GtkWindow(new GtkWindowType.toplevel)
+ win.connect_destroy_signal_to_quit
- container = new GtkGrid(2,1,true)
+ container = new GtkGrid
win.add( container )
lbl = new GtkLabel( "Hello world" )