Re: Passing data to a callback (again)



Frank Cox wrote:
What have I missed?

Not all callbacks perform the same function. That is why you must
consult the documentation for the signal you want to catch.

The g_signal_connect() function does indeed only pass one pointer for
the fourth argument "data". All signals have a "data" argument to
receive the one pointer. In the case of the "insert-data" signal it has
a specific callback that provides additional data. Other callbacks will
have different function arguments that will provide different data. In
the end, the "data" pointer is the only pointer you can pass from
outside any callback.



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