Hi,
I'm trying to make a very simple program from vala to genie.
But i have a problem, how to convert:
spin_box.value_changed += (s) => {
slider.set_value (s.get_value ());
};
to genie syntax ?
This is the code for the program:
[indent=4]
uses
Gtk
init
Gtk.init (ref args)
var test = new TestWindow ()
test.show_all ()
Gtk.main ();
class TestWindow : Window
init
title = "Test Window"
default_height = 20
default_width = 300
window_position = WindowPosition.CENTER
destroy += Gtk.main_quit
var spin_box = new SpinButton.with_range (0, 130, 1)
spin_box.value = 35
var slider = new HScale.with_range (0, 130, 1)
var hbox = new HBox (true, 5)
var button = new Button.with_label("Exit")
button.clicked += Gtk.main_quit
hbox.add (spin_box)
hbox.add (slider)
hbox.add (button)
add (hbox)
Thanks in advance,
Nikobordx.
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list