summaryrefslogtreecommitdiff
path: root/gdk/gdk.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-02-09 01:32:24 -0500
committerMatthias Clasen <mclasen@redhat.com>2011-02-09 01:32:24 -0500
commit1f4bb70bac14f69edc69336627008c37a1c47f4c (patch)
tree69bd9233cd69ec42308081b3b1bbe64ce2728061 /gdk/gdk.c
parent7e7eaf315b25417252304d7fc53faeaaf3945e67 (diff)
downloadgtk+-1f4bb70bac14f69edc69336627008c37a1c47f4c.tar.gz
Give the GDK docs some love
Reorganize some sections, drop the largely redundant multihead section, add some more information about multiple backends.
Diffstat (limited to 'gdk/gdk.c')
-rw-r--r--gdk/gdk.c26
1 files changed, 5 insertions, 21 deletions
diff --git a/gdk/gdk.c b/gdk/gdk.c
index 5182d72e2f..e65f68b3f3 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -54,27 +54,7 @@
* The #GDK_WINDOWING_X11 macro is defined if the X11 backend
* is supported.
*
- * Use this macro to guard code that is specific to the X11-backend.
- * Since GDK may be configured with multiple backends, an additional
- * runtime check for the used backend is recommended:
- *
- * |[
- * #ifdef GDK_WINDOWING_X11
- * if (GDK_IS_X11_DISPLAY (display))
- * {
- * /&ast; make X11-specific calls here &ast;/
- * }
- * else
- * #endif
- * #ifdef GDK_WINDOWING_QUARTZ
- * if (GDK_IS_QUARTZ_DISPLAY (display))
- * {
- * /&ast; make Quartz-specific calls here &ast/
- * }
- * else
- * #endif
- * g_error ("Unsupported GDK backend");
- * ]|
+ * Use this macro to guard code that is specific to the X11 backend.
*/
/**
@@ -82,6 +62,8 @@
*
* The #GDK_WINDOWING_WIN32 macro is defined if the Win32 backend
* is supported.
+ *
+ * Use this macro to guard code that is specific to the Win32 backend.
*/
/**
@@ -89,6 +71,8 @@
*
* The #GDK_WINDOWING_QUARTZ macro is defined if the Quartz backend
* is supported.
+ *
+ * Use this macro to guard code that is specific to the Quartz backend.
*/
typedef struct _GdkPredicate GdkPredicate;