On Fri, 2013-07-26 at 10:20 -0400, Matthias Clasen wrote:
> If you've been using
>
> gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), MyClassPrivate,
> foo);
>
> you need to change it to
>
> gtk_widget_class_bind_child (GTK_WIDGET_CLASS (class), MyClass, foo);
>
> The struct member foo is still expected to be in the private struct
> associated with MyClass.

        Hi,
I do not know this API, neither use it (yet?), but the first version
seems more correct to me, because with the second you define some hidden
constraint where the 'priv' structure comes from. If nothing else, then
this should be properly documented, to avoid any confusion in the
future.

Just my opinion.
        Bye,
        Milan

_______________________________________________
desktop-devel-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/desktop-devel-list

Reply via email to