Re: GSEAL branch merge



On Fri, 20 Jun 2008, Christian Persch wrote:

Hi;

what's the purpose of sealing the "GtkFooPrivate *priv" members of
GtkFoo structs? Those are opaque pointers that code outside of gtk
cannot access anyway. And in gtk+ itself using obj->priv is just a
pointer deref while using G_TYPE_INSTANCE_GET_PRIVATE which you replaced
it with is more costly than that.

Inside Gtk+ it doesn't make a difference, and code that copied
structure definitions from gtk's .c files to access ->priv pointer
internals anyways can now be automatically spotted with -DGSEAL_ENABLE.

	Christian

---
ciaoTJ


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