Re: [Vala] [Genie] Signals and callbacks
- From: Donn <donn ingle gmail com>
- To: vala-list gnome org
- Subject: Re: [Vala] [Genie] Signals and callbacks
- Date: Thu, 11 Apr 2013 16:57:24 +0200
On 11/04/2013 15:40, Alex Stefan Kaye wrote:
def on_clicked(ev:Clutter.ButtonEvent)
> This gives me the following
error: error: Argument 1: Cannot convert from `MyClass.on_click' to
`Clutter.Actor.button_press_event'
Nearest I can tell with my own Newb-o-vision ;) is that the signature of
your handler is incomplete:
https://developer.gnome.org/clutter/stable/ClutterActor.html#ClutterActor-button-press-event
It looks like this in C:
static gboolean on_clicked (ClutterActor *actor, ClutterEvent *event,
gpointer data)
So you need to shift all those args over into Genie, somehow. Oh, and
return true from the handler.
hth,
\d
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]