Re: GTK+3 - A common event handler - possible?
- From: Bernhard Schuster <schuster bernhard googlemail com>
- To: Donn <donn ingle gmail com>
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: GTK+3 - A common event handler - possible?
- Date: Thu, 23 May 2013 10:19:25 +0200
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]