[Vala] How to setup vala with gtk
- From: Vernon <vmars316 live com >
- To: vala-list gnome org
- Subject: [Vala] How to setup vala with gtk
- Date: Wed, 18 Apr 2012 03:16:51 +0000 (UTC)
Hello,
Windows7:
I just downloaded "vala-0.12.0.exe vala 0.12.0 for Windows".
When i compile with "valac -o Gtk-01 Gtk-01.vala"
vala can't find gtk.
error: namespace name "gtk" cannot be found.
How can i set up vala & gtk
so that they work together?
I also, want a Gui Builder in the mix.
Is Glade a good choice?
Thanks for your help...Vernon
Here is my source example code:
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]