Re: Extra callback parameters



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]