Re: strangeness of g_signal_connect
- From: Colossus <colossus 3000 it>
- To: Annamalai Gurusami <annamalai gurusami masconit com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: strangeness of g_signal_connect
- Date: Mon, 25 Jul 2005 09:45:54 -0700
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]