According to GObject reference
g_signal_connect_swapped(instance, detailed_signal, c_handler, data); connects a GCallback function to a signal for a particular object. The instance on which the signal is emitted and data will be swapped when calling the handler.
I don't quite get what this means. Does this mean that the data
will point to the object pointed to byinstance
and instance
will point to the object that was pointed to by data
or am I making a mistake here?
If former is the case then what is the logic behind this?