Hi, 2010/3/11 James Parkinson <[email protected]>: > >>There are two problems with your handler: >> >>1) It needs to have 'instance_pos = -1' added to the CCode clause, so it >> will look like: >> >> [CCode (name="G_MODULE_EXPORT on_menu_change_tab", instance_pos = -1)] >> def on_menu_change_tab () >> >> That will change the signature of the method to what Gtk.Builer expects. >> This is the good way to do it, but if the method doesn't take any parameter, it won't change anything.
The problem is that your method doesn't take a parameter, while it should have at least one : the signal handler should take at least one parameter: the signal sender, plus any other parameters the signal takes. So, if you're connecting to a MenuItem's activate signal, your handler should take a MenuItem argument. (The comments from Jan are also relevant if you're using GtkBuilder) btw, when you say a crash on windows, you mean you didn't test somewhere else, not that it works, right? HTH, Abderrahim _______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
