]> Pileus Git - ~andy/gtk/commitdiff
Add info about single includes when compiling GTK+ apps
authorJavier Jardón <jjardon@gnome.org>
Wed, 9 Dec 2009 22:54:17 +0000 (23:54 +0100)
committerJavier Jardón <jjardon@gnome.org>
Tue, 15 Dec 2009 19:10:20 +0000 (20:10 +0100)
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

index daca56e6970962b98ea1a267077d261d81993d5a..a9a3632a91bee60272fa12cd9ee638574c76aa1a 100644 (file)
@@ -69,12 +69,17 @@ toplevel headers <filename>gtk.h</filename>, <filename>gdk.h</filename>,
 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: <filename>gdkkeysyms.h</filename> is not included in
+<filename>gdk.h</filename> because the file is quite large; see
+<link linkend="gdk-Keyboard-Handling">Key Values documentation</link>.
+<filename>gdkx.h</filename> must be included independently because It's
+platform-specific; see
+<link linkend="gdk-X-Window-System-Interaction">X Window System Interaction</link>
+documentation.
+The same for <filename>gtkunixprint.h</filename> if you use the non-portable
+<link linkend="GtkPrintUnixDialog">GtkPrintUnixDialog</link> API.
 </para>
 
 </refsect1>
 </refentry>
-
-
-
-