Re: api change in GTK+ master

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,

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.

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

Just my opinion.

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