Re: GtkAllocation accessor

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

 



On Wed, Jun 02, 2010 at 02:45:56PM +0100, Emmanuele Bassi wrote:
> because if you get a pointer to an internal data structure you're
> allowing people to use it. using const would also not work because of
> the (lax) semantics of const in C. it would, in essence, allow you to
> poke around with internals that are none of your concern. future
> releases of gtk+ might even result in a computed Allocation which is not
> stored by the widget itself - so using an out parameter is the only
> safe, consistent and future-proof way of returning structures in C.

OK - thank you for the explanation!

Patrick
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux