The function that you register as the callback for a signal must have the
correct prototype. You can find what the prototype should be from the
reference section of this manual.
For example, if you wanted to connect to the
"clicked" signal of an instance of
GtkButton you should define a function that
accepts one parameter, which will be the button that was clicked.
The code below shows how you might create a window, add a button to it,
wait for it to be clicked and then, when it is clicked, open a new
GtkWindow containing a message.