GNOME Bugzilla – Bug 522060
Gtk.ActionGroup.add_actions() family of functions is broken
Last modified: 2008-03-16 21:58:59 UTC
SSIA add_actions() has a gpointer data argument to be passed to ActionEntry callback; the data argument is removed by vapigen, which means that valac will produce invalid C code from valid Vala code. a solution is either add a pointer argument to add_actions() or, better, pass the instance pointer implicitly. along with bug 522059 this makes using UIManager a lot more complicated that it should be.
Confirming. Do you have an idea how we could make it possible to pass the instance pointer implicitly, as you specify the callback at a different location (in the const struct) than the user_data/instance (function argument)?
2008-03-16 Jürg Billeter <j@bitron.ch> * vapigen/valagidlparser.vala: support hidden="0" for parameters * vapi/packages/gtk+-2.0/: fix gtk_action_group_add_actions bindings, fixes bug 522060 * vapi/gtk+-2.0.vapi: regenerated Fixed in r1131.