[gtk+] Drop the G_SEAL definition from gdkconfig.h
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Drop the G_SEAL definition from gdkconfig.h
- Date: Thu, 6 Jan 2011 00:01:38 +0000 (UTC)
commit 53b67b9a7209bf187c2609e15fcb4ee4ee127e53
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jan 5 19:00:14 2011 -0500
Drop the G_SEAL definition from gdkconfig.h
All sealed members removed. Yay!
configure.ac | 9 ---------
docs/reference/gtk/migrating-2to3.xml | 9 +++++----
2 files changed, 5 insertions(+), 13 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ae75d1e..3124641 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
diff --git a/docs/reference/gtk/migrating-2to3.xml b/docs/reference/gtk/migrating-2to3.xml
index a6f3ca8..70d9419 100644
--- a/docs/reference/gtk/migrating-2to3.xml
+++ b/docs/reference/gtk/migrating-2to3.xml
@@ -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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]