Re: GSEAL branch merge
- From: Tim Janik <timj imendio com>
- To: Christian Persch <chpe gnome org>
- Cc: Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: GSEAL branch merge
- Date: Fri, 20 Jun 2008 23:48:35 +0200 (CEST)
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]