Drop the G_SEAL definition from gdkconfig.h

All sealed members removed. Yay!
This commit is contained in:
Matthias Clasen 2011-01-05 19:00:14 -05:00
parent 2e064b3378
commit 53b67b9a72
2 changed files with 5 additions and 13 deletions

View File

@ -1546,15 +1546,6 @@ AC_CONFIG_COMMANDS([gdk/gdkconfig.h], [
G_BEGIN_DECLS
#ifndef GSEAL
/* introduce GSEAL() here for all of Gdk and Gtk+ without the need to modify GLib */
# ifdef GSEAL_ENABLE
# define GSEAL(ident) _g_sealed__ ## ident
# else
# define GSEAL(ident) ident
# endif
#endif /* !GSEAL */
_______EOF
cat >>$outfile <<_______EOF

View File

@ -100,10 +100,11 @@
</para>
<para>
To ensure that your application does not have problems with this, you
define the preprocessor symbol <literal>GSEAL_ENABLE</literal>. This
will make the compiler catch all uses of direct access to struct fields
so that you can go through them one by one and replace them with a call
to an accessor function instead.
define the preprocessor symbol <literal>GSEAL_ENABLE</literal> while
building your application against GTK+ 2.x. This will make the compiler
catch all uses of direct access to struct fields so that you can go
through them one by one and replace them with a call to an accessor
function instead.
<programlisting>
make CFLAGS+="-DGSEAL_ENABLE"
</programlisting>