Re: Extra callback parameters



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]