Re: strangeness of g_signal_connect



Annamalai Gurusami wrote:

g_signal_connect( G_OBJECT(AddFile_button), "clicked",
                  G_CALLBACK(on_add_files_activate), "dummy");

The actual parameters of the callback function is determined by the
event and the widget handling the event.  Here you are handling the
"clicked" event for a GtkButton.  And for this event, the prototype of
the callback handler is

I just tried to replace gpointer with G_OBJECT but nothing to do, the value dummy is never received by the function. I must use two parameters and get rid of the first one to receive the value dummy.
--
Colossus

Cpsed, a Linux OpenGL 3D scene editor
http://cpsed.sourceforge.net/




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