Re: Extra callback parameters
- From: Russell Shaw <rjshaw iprimus com au>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Extra callback parameters
- Date: Thu, 23 Oct 2003 01:58:01 +1000
Peter "Firefly" Lund wrote:
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...
But that's a yuk way of doing it. I've got dozens of those things;)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]