Hello,
I'm trying to build sample Vala application using Builder:
* New project -> From a project template: Language - Vala, Pattern - Empty project
* Choose Empty File from context menu of the project directory and add file main.vala (see below).
* Get success from Build process (see output below)
No one executable file was generated in this case. What should I add to scripts to make building work?
Your help will be very appreciated.
Best regards,
Anastasiya
main.vala
using Gtk;
int main (string[] args) {
Gtk.init (ref args);
var window = new Window ();
window.title = "First GTK+ Program";
window.border_width = 10;
window.window_position = WindowPosition.CENTER;
window.set_default_size (350, 70);
window.destroy.connect (Gtk.main_quit);
var button = new Button.with_label ("Click me!");
button.clicked.connect (() => {
button.label = "Thank you";
});
window.add (button);
window.show_all ();
Gtk.main ();
return 0;
}