Re: [Vala] Crash in "ListStore.set_sort_func" callback



The sort function is compiled as
static gint my_app_sort_percent2 (MyApp* self, GtkTreeModel* model2,
GtkTreeIter* iter1, GtkTreeIter* iter2) {


According to the gtk doc, GtkTreeIterCompareFunc has 
this signature:

gint (*GtkTreeIterCompareFunc) (GtkTreeModel *model,
                                GtkTreeIter *a,
                                GtkTreeIter *b,
                                gpointer user_data);

So, it appears to be a bug (a SERIOUS bug) in the vapi.


Nice day
Nor Jaidi Tuah





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