Re: Type-safe G_CALLBACK
- From: David Zeuthen <zeuthen gmail com>
- To: gtk-devel-list gnome org
- Subject: Re: Type-safe G_CALLBACK
- Date: Tue, 22 Mar 2011 07:44:44 -0400
Hi,
On Fri, Mar 18, 2011 at 7:55 AM, David Zeuthen <zeuthen gmail com> wrote:
> Hey,
>
> Is there any reason we don't have something similar to
> G_DEFINE_CALLBACK() as described below in [1]? It seems like it would
> increase type-safety a lot...
OK, got around to doing this - see
https://bugzilla.gnome.org/show_bug.cgi?id=645511
including a patch converting all of GLib to use a
G_DESTROY_NOTIFY_CALLBACK macro built with G_DEFINE_CALLBACK instead
of the unsafe (GDestroyNotify) cast. Not too keen on doing more work
until there's a decision if we want something like that. Discussion in
Bugzilla please. Thanks.
David
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]