strangeness of g_signal_connect
- From: Colossus <colossus 3000 it>
- To: gtk-app-devel-list gnome org
- Subject: strangeness of g_signal_connect
- Date: Mon, 25 Jul 2005 09:18:57 -0700
Hi,
In my app I have the following:
g_signal_connect ((gpointer) AddFile_button, "clicked",
G_CALLBACK (on_add_files_activate),
"dummy");
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 ?
--
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]