Re: Passing data to a callback (again)



On Tue, 31 Jul 2012 11:06:14 -0500
Michael Cronenworth wrote:

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.

*DING*

The light just came on.

Thank you ever so much for your explanation!


-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
www.creekfm.com - FIFTY THOUSAND WATTS of POW WOW POWER!



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