Re: GTK+3 - A common event handler - possible?



I will attempt grokkage of this user_data thing. I've seen it in the C
docs, but I'm newly into Vala, and it looks ... weird:
https://live.gnome.org/Vala/**SignalsAndCallbacks<https://live.gnome.org/Vala/SignalsAndCallbacks>(at end)


Makes somewhat sense, you are expected to pass a class instead of a bare
function. You can then stuff all your data into that class, the only
limitation in comparsion to C is, that your class _must_ contain the
handler too.

/B


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