gtk define IO callback as bool func(gtkchannel, GIOCondition,GPointer userdata)
the problem is that I want to send 2 arguments as a user_data: widget and a pointer that will keep my errors form the callback. I know that I can send struct but I want to check if there is another way to do it.
is there a way to edit the type of the callback?
is there a way to get the widget address?
You have to use a struct, or make your own class and pass that. Alternatively, use GTK from Python or Vala. Passing data to callbacks is much easier in those languages.