Re: Marshalling CClosures
- From: Tim Janik <timj gtk org>
- To: ERDI Gergo <cactus cactus rulez org>
- Cc: Gtk+ MList <gtk-list gnome org>, Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: Marshalling CClosures
- Date: Mon, 30 Jul 2001 00:52:15 +0200 (CEST)
On Mon, 30 Jul 2001, ERDI Gergo wrote:
> On Mon, 30 Jul 2001, Tim Janik wrote:
>
> > add_foo_notifier(GClosure*cl)
> > {
> > g_closure_ref (cl);
> > g_closure_sink (cl); /* all functions that take a closure need to sink it */
> > if (G_CLOSURE_NEEDS_MARSHAL (cl))
> > g_closure_set_marshal (cl, foo_marshal_VOID__FOO_ARGS);
> > }
> >
> > where foo_marshal_VOID__FOO_ARGS() should be generated by glib-genmarshal.
>
> Thanks Tim, this is exactly what I was looking for.
>
> BTW, the GObject stuff could use more documenting -- the files in
> doc/ref/gobject/tmpl I had a look at were all empty.
i take patches ;)
seriously though, it's on my my list of things to do, though i still
have bugs to fix that have far higher prios.
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]