Hi guys. I'm trying to get this working:
--------------- The function gboolean save_one_sat(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) { // do something } --------------- Is passed to another function like this: satlist_foreach_sat(save_one_sat); --------------- This function is declared as: void satlist_foreach_sat(GtkTreeModelForeachFunc func); --------------- Where the actual GtkTreeModelForeach will be called: gtk_tree_model_foreach(GTK_TREE_MODEL(sat_store), func, NULL); This segfaults, and gdb says the parameter passed to satlist_foreach_sat is actually 0x1, not the address of the save_one_sat function. I've tried declaring save_one_sat as static, I've typecasted the save_one_sat on passing it as parameter. I've found several tutorials on the net that did just this... I guess the 0x1 is because the function is gboolean, and that value is 'TRUE', but why doesn't the function address get used? Sorry if this is too basic... please point me to some good tutorial... John _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list