[Vala] broken gtk+ binding?
- From: "Nguyen Thai Ngoc Duy" <pclouds gmail com>
- To: vala-list gnome org
- Subject: [Vala] broken gtk+ binding?
- Date: Sun, 9 Dec 2007 21:15:03 +0700
Hi,
I tried this code:
class MyComp : Gtk.Window {
construct {
var b = new Gtk.Button.with_label("hellp");
b.clicked += on_clicked;
add(b);
}
void on_clicked() {
GLib.stdout.printf("Help!\n");
}
static int main(string[] p) {
Gtk.init(out p);
MyComp w = new MyComp();
w.show_all();
Gtk.main();
return 0;
}
}
The generated code for signal "clicked" was
static void my_comp_on_clicked (MyComp* self) {
g_return_if_fail (IS_MY_COMP (self));
fprintf (stdout, "Help!\n");
}
It should have been *_clicked(GtkWidget*, MyComp*). Was it code
generation broken or did I write something wrong? Vala revision was
760.
Thanks
--
Duy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]