Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main (string[] args) {
- Gtk.init (ref args);
- var window = new Gtk.Window ();
- window.title = "Hello World!";
- window.border_width = 12;
- window.window_positi
- window.set_default_size (350, 70);
- window.destroy.connect (Gtk.main_quit);
- var butt Gtk.Button.with_label ("Click me!");
- button.clicked.connect (() => {
- button.label = "Hello World!";
- button.set_sensitive (false);
- });
- window.add (button);
- window.show_all ();
- Gtk.main ();
- return 0;
- }
- And I got 2 errors
- francisco@eos:~$ cd /home/francisco/Projects/gtk-hello/src
- francisco@eos:~/Projects/gtk-hello/src$ valac --pkg gtk+-3.0 gtk-hello.vala
- gtk-hello.vala:8.7-8.7: error: syntax error, expected `;'
- window.set_default_size (350, 70);
- ^
- gtk-hello.vala:11.11-11.13: error: syntax error, expected `;'
- var butt Gtk.Button.with_label ("Click me!");
- ^^^
- Compilation failed: 2 error(s), 0 warning(s)
- francisco@eos:~/Projects/gtk-hello/src$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement