Re: [Vala] Gtk.TreeSelection bindings



Hi,

Thanks for your patch, I just committed it to both the vala master and
the 0.6 branch.

--
Ali

On Fri, Apr 17, 2009 at 2:51 AM, Jim Nelson <jim yorba org> wrote:
I'm having some problems with the set_select_function method and its
delegate, Gtk.TreeSelectionFunc.  A user data void * is available to pass a
target pointer, but it's not being used.  The target pointer is being
inserted anyway by valac, causing compilation errors.

I hand-edited 0.6.1's gtk+-2.0.vapi to get something working.  It looks like
this is more in the ballpark:

4407c4407,4408
<         public void set_select_function (Gtk.TreeSelectionFunc func, void*
data, Gtk.DestroyNotify destroy);
---
        [CCode (delegate_target_pos=1.1)]
        public void set_select_function (Gtk.TreeSelectionFunc func,
Gtk.DestroyNotify? destroy);
6725c6726
<     [CCode (cheader_filename = "gtk/gtk.h")]
---
    [CCode (cheader_filename = "gtk/gtk.h", delegate_target_pos=3.1)]

This also handles passing null for the destroy function, which is valid,
although with the data pointer being used for the target, I'm not sure its
necessary.

-- Jim Nelson
Yorba


_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list





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