From 4f0f6243c913d4fa23bf7ddfe1c6f9f95cb48011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Wed, 9 Dec 2009 23:54:17 +0100 Subject: [PATCH] Add info about single includes when compiling GTK+ apps gtk.h, gdk.h, gdk-pixbuf.h. are the recommended includes. But there are some exceptions: gdkkeysyms.h, gdkx.h and gtkunixprint.h https://bugzilla.gnome.org/show_bug.cgi?id=604117 --- docs/reference/gtk/compiling.sgml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/reference/gtk/compiling.sgml b/docs/reference/gtk/compiling.sgml index daca56e697..a9a3632a91 100644 --- a/docs/reference/gtk/compiling.sgml +++ b/docs/reference/gtk/compiling.sgml @@ -69,12 +69,17 @@ toplevel headers gtk.h, gdk.h, If you want to make sure that your program follows this recommended practise, you can define the preprocessor symbols GTK_DISABLE_SINGLE_INCLUDES and GDK_PIXBUF_DISABLE_SINGLE_INCLUDES to make GTK+ generate an error -when individual headers are directly included. +when individual headers are directly included. +There are some exceptions: gdkkeysyms.h is not included in +gdk.h because the file is quite large; see +Key Values documentation. +gdkx.h must be included independently because It's +platform-specific; see +X Window System Interaction +documentation. +The same for gtkunixprint.h if you use the non-portable +GtkPrintUnixDialog API. - - - -