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

Re: [Vala] gtk+2.0.vapi bug



* Daniel Svensson <dsvensson gmail com> wrote:
> public bool get_dest_row_at_pos (int drag_x, int drag_y, out weak
> Gtk.TreePath path, Gtk.TreeViewDropPosition pos);
> 
> The last parameter is incorrect here I think. The C-code wants a
> GtkTreeViewDropPosition *pos, that is.. a list of positions. But
> passing a [] pos expands to multiple parameters (len and the actual
> data) so I don't know how to fix it. I just changed it to 'pointer'
> instead to get my app working, but that's obviously not a real fix.

You can just do this:

| [NoArrayLength]
| public bool get_dest_row_at_pos (int drag_x, int drag_y, out weak | Gtk.TreePath path, Gtk.TreeViewDropPosition[] pos);

This will omit the length argument.

-- 
 Ed Schouten <ed fxq nl>
 WWW: http://g-rave.nl/

Attachment: pgpHjDQVr3hgo.pgp
Description: PGP signature



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