diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 5ccb04cd0..f6dd8293b 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,7 @@ +2008-05-28 Matthias Clasen + + * gtk/compiling.sgml: Explains single includes + 2008-05-28 Matthias Clasen Bug 535250 - GtkToolButton reference page says "label" where diff --git a/docs/reference/gtk/compiling.sgml b/docs/reference/gtk/compiling.sgml index d5b89dea8..b52337237 100644 --- a/docs/reference/gtk/compiling.sgml +++ b/docs/reference/gtk/compiling.sgml @@ -58,6 +58,16 @@ symbol GDK_MULTIHEAD_SAFE by using the command line option -DGTK_MULTIHEAD_SAFE=1. + +The recommended way of using GTK+ has always been to only include the +toplevel headers gtk.h, gdk.h, +gdk-pixbuf.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. + +