diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-02-09 01:32:24 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-02-09 01:32:24 -0500 |
commit | 1f4bb70bac14f69edc69336627008c37a1c47f4c (patch) | |
tree | 69bd9233cd69ec42308081b3b1bbe64ce2728061 /gdk/gdk.c | |
parent | 7e7eaf315b25417252304d7fc53faeaaf3945e67 (diff) | |
download | gtk+-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.c | 26 |
1 files changed, 5 insertions, 21 deletions
@@ -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)) - * { - * /* make X11-specific calls here */ - * } - * else - * #endif - * #ifdef GDK_WINDOWING_QUARTZ - * if (GDK_IS_QUARTZ_DISPLAY (display)) - * { - * /* 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; |