Re: Extra callback parameters
- From: "Peter \"Firefly\" Lund" <firefly diku dk>
- To: Russell Shaw <rjshaw iprimus com au>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Extra callback parameters
- Date: Wed, 22 Oct 2003 17:51:19 +0200 (MEST)
On Thu, 23 Oct 2003, Russell Shaw wrote:
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)
{...
}
use a struct:
struct combine_data {
gpointer data1;
gpointer data2;
};
Isn't this a FAQ? It may not be /in/ the FAQ, though...
-Peter
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]