[Vala] I just downloaded "vala-0.12.0.exe vala 0.12.0 for Windows".



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? 

Also, where can I get a download of Genie?

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;
}

"All things in moderation, except for love and forgiveness."
- www.vmars316.com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]