Re: [Vala] [PATCH] gtk_action_group_add_*_actions add user_data



On Wed, April 2, 2008 08:37, Jaap A. Haitsma wrote:
I've just discovered a bug with the action entries. The signature of
the callbacks is always like
static void sample_on_about (Sample* self, GtkAction* action)
while it needs to be
static void sample_on_about (GtkAction* action, Sample* self)


Attached sample.vala shows this. Furthermore this also shows with
add_actions stuff we should not pass any user data.

If I can get some hints on how to fix this, I can try to cook up a patch

valac should create a C wrapper function that reverses the order of
arguments. It should already support this, don't know what's wrong at the
moment.

Juerg




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