On Wed, 2010-06-02 at 12:17 +0100, Patrick Welche wrote: > OK, I shouldn't have mentioned memory. Trying again. > > Why was > > void gtk_widget_get_allocation(GtkWidget *widget, GtkAllocation *allocation) > > chosen, rather than > > GtkAllocation *gtk_widget_get_allocation(GtkWidget *widget) > > ? because you always want a copy of the allocation, to avoid third party code messing up with internal state of the widget. and because it matches other accessors for structures in GLib and GTK+. ciao, Emmanuele. -- W: http://www.emmanuelebassi.name B: http://blogs.gnome.org/ebassi _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list