summaryrefslogtreecommitdiff
path: root/gdk/gdk.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-02-27 07:56:29 -0500
committerMatthias Clasen <mclasen@redhat.com>2012-02-27 07:56:29 -0500
commitf6d8c8a717851c282c90b168492e9c5ee23cfc80 (patch)
tree65068a0bd36efd08709362589c98a51e74271bb9 /gdk/gdk.c
parent2c25bd85b8690eb0ca6b023122dc130d57c0ca8d (diff)
downloadgtk+-f6d8c8a717851c282c90b168492e9c5ee23cfc80.tar.gz
Add some documentation around deprecations
Diffstat (limited to 'gdk/gdk.c')
-rw-r--r--gdk/gdk.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/gdk/gdk.c b/gdk/gdk.c
index f34da89282..cdc4c4a8bc 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -45,7 +45,19 @@
* @Title: General
*
* This section describes the GDK initialization functions and miscellaneous
- * utility functions.
+ * utility functions, as well as deprecation facilities.
+ *
+ * The GDK and GTK+ headers annotate deprecated APIs in a way that produces
+ * compiler warnings if these deprecated APIs are used. The warnings
+ * can be turned off by defining the macro %GDK_DISABLE_DEPRECATION_WARNINGS
+ * before including the glib.h header.
+ *
+ * GDK and GTK+ also provide support for building applications against
+ * defined subsets of deprecated or new APIs. Define the macro
+ * %GDK_VERSION_MIN_REQUIRED to specify up to what version
+ * you want to receive warnings about deprecated APIs. Define the
+ * macro %GDK_VERSION_MAX_ALLOWED to specify the newest version
+ * whose API you want to use.
*/
/**
@@ -75,6 +87,14 @@
* Use this macro to guard code that is specific to the Quartz backend.
*/
+/**
+ * GDK_DISABLE_DEPRECATION_WARNINGS:
+ *
+ * A macro that should be defined before including the gdk.h header.
+ * If it is defined, no compiler warnings will be produced for uses
+ * of deprecated GDK APIs.
+ */
+
typedef struct _GdkPredicate GdkPredicate;
struct _GdkPredicate