Re: api change in GTK+ master
- From: Milan Crha <mcrha redhat com>
- To: desktop-devel-list gnome org
- Subject: Re: api change in GTK+ master
- Date: Fri, 26 Jul 2013 18:44:12 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]