Re: [Vala] signal cascade blocking in Gtk+
- From: Alessandro Pellizzari <alex amiran it>
- To: Vala ML <vala-list gnome org>
- Subject: Re: [Vala] signal cascade blocking in Gtk+
- Date: Sat, 05 Jan 2008 12:39:34 +0100
On sab, 2008-01-05 at 10:53 +0100, Andrea Del Signore wrote:
you have to use the delete_event like this:
private bool nascondi(Gtk.Widget w, Gdk.Event event)
{
this.hide();
return false;
}
I think that when you tried to use it, you forgot to change the
"nascondi" function signature according to the docs ;)
You are right, I forgot it. :)
Yeah! It works!!
Thank you very much! :)
But the compiler gives no warning, and the error at runtime is quite
cryptic. :/
BTW, I cannot find the docs regarding Gtk in Vala, apart from the
examples in homepage.
C callbacks have 3 arguments: widget, event, data. But I don't know if
the data parameter can be used in vala and how it must be declared (it's
a gpointer)
Should I look Mono Gtk# docs?
I have never coded in C#, only in Python+PyGtk.
Bye.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]