Re: [Vala] How are DestroyNotify func generated automatically?



Hi Evan,

I'm CCing you, as I didn't get any answer yet. I had like to know how
to us a DestroyNotify function with a SourceFunc# func.

Thank you
Mike

2009/5/16 Mike Massonnet <mmassonnet gmail com>:
Hi,

As of bug #577048[1], the functions add_full and add_seconds_full from
Timeout do no more take a manual DestroyNotify? notify. The bug report says
that they are generated automatically, still I am clueless at what to use in
place.

The line:

       Timeout.add_seconds_full (Priority.DEFAULT, 1, test);

simply expands to:

       g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 1,
               _test_gsource_func, NULL, NULL);

Do you have any idea?

Thanks
Mike

[1] http://bugzilla.gnome.org/show_bug.cgi?id=577048




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]