Re: Marshalling CClosures
- From: ERDI Gergo <cactus cactus rulez org>
- To: Tim Janik <timj gtk org>
- Cc: Havoc Pennington <hp redhat com>, Gtk+ MList <gtk-list gnome org>, Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: Marshalling CClosures
- Date: Mon, 30 Jul 2001 00:40:55 +0200 (CEST)
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.
--
.--= ULLA! =---------------------. `We are not here to give users what
\ http://cactus.rulez.org \ they want' -- RMS, at GUADEC 2001
`---= cactus cactus rulez org =---'
8:20 Leviszi megsétáltatni pingvinjét. Ami persze a gonosz ingyenes Linux operációs rendszer jelképe.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]