Re: [Vala] cannot convert to a pointer type error when passing Gdk.MotionEvent
- From: Eric Gregory <eric yorba org>
- To: Axel FILMORE <axel filmore gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] cannot convert to a pointer type error when passing Gdk.MotionEvent
- Date: Wed, 28 Mar 2012 14:51:16 -0700
On Wed, Mar 28, 2012 at 2:38 PM, Axel FILMORE <axel filmore gmail com>wrote:
Hi there,
I can't get the following code to compile with Vala :
private bool on_motion_notify (Gdk.EventMotion evt) {
Gtk.drag_begin (this,
target_list,
Gdk.DragAction.COPY
| Gdk.DragAction.MOVE
| Gdk.DragAction.LINK,
1,
(Gdk.Event) evt);
}
Unlike in C, in Vala Gdk.Event is a class and Gdk.EventMotion is a struct.
You might check this thread for a user who had a similar issue:
http://www.mail-archive.com/vala-list gnome org/msg08105.html
- Eric
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]