Extra callback parameters
- From: Russell Shaw <rjshaw iprimus com au>
- To: gtk-app-devel-list gnome org
- Subject: Extra callback parameters
- Date: Thu, 23 Oct 2003 01:35:12 +1000
Hi,
I have a callback that is passed one user data item (cdata):
void colour_cb(GtkButton *button, gpointer data)
{...
}
g_signal_connect(G_OBJECT(colbutton),"clicked",G_CALLBACK(colour_cb),cdata);
Is it possible to modify g_object signals so that more than
one data parameter can be passed like:
void colour_cb(GtkButton *button, gpointer data1, gpointer data2)
{...
}
g_signal_connect(G_OBJECT(colbutton),"clicked",G_CALLBACK(colour_cb),cdata1,cdata2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]