Re: Newbie in over head -- Marshallers
- From: Owen Taylor <otaylor redhat com>
- To: "Dennie, Brooke" <BDennie sark com>
- Cc: "'gtk-list gnome org'" <gtk-list gnome org>
- Subject: Re: Newbie in over head -- Marshallers
- Date: 28 Mar 2003 18:17:50 -0500
On Wed, 2003-03-26 at 10:50, Dennie, Brooke wrote:
> Hello,
>
> I need to add a signal to the GtkWidget so that the callback functions will
> take two pointers instead of one. i.e.
> foo(GtkWidget *widget, gpointer clientdata, gpointer
> datastruct){}
>
> I realize that I need to use gtk_object_class_user_signal_new(), however, I
> don't understand how to define a new marshaller for this. The FAQ simply
> says "If you want your new signal to have more than the classical gpointer
> parameter, you'll have to play with GTK+ marshallers." I'm guessing that I
> need to use GtkCallbackMarshal() to define a function, but I can't seem to
> find any documentation on what the marshaller functions actually need to do.
>
> Note: I don't have access to the gtk src code on the machine I'm using yet,
> so I can't look there for an example
>
> Can anyone help me?
http://developer.gnome.org/dotplan/porting/ar01s15.html
Has information about using glib-genmarshal.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]