Re: Marshalling CClosures



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]