forked from AuroraMiddleware/gtk
Drop the G_SEAL definition from gdkconfig.h
All sealed members removed. Yay!
This commit is contained in:
parent
2e064b3378
commit
53b67b9a72
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user