strangeness of g_signal_connect


In my app I have the following:

g_signal_connect ((gpointer) AddFile_button, "clicked",
                    G_CALLBACK (on_add_files_activate),

I have noticed that if the function "on_add_files_activate" is declared with only one parameter, gpointer data , I never receive the word dummy. Instead if the same function is declared with two parameters:

void on_add_files_activate ( GtkWidget *useless , gpointer data);
I can successfull print the value "dummy" pointed by data.

Could gtk developers explain this strange behaviour please ?

Cpsed, a Linux OpenGL 3D scene editor

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