[gimp] libgimp: add guards that #error out if individual files are included



commit 856c89a84537069cb9517ba7bce15a9ede0e18a6
Author: Michael Natterer <mitch gimp org>
Date:   Thu Apr 28 19:59:52 2011 +0200

    libgimp: add guards that #error out if individual files are included

 libgimp/Makefile.am                 |    3 ++-
 libgimp/gimp.h                      |    5 ++++-
 libgimp/gimp_pdb.h                  |    4 ++++
 libgimp/gimp_pdb_headers.h          |    4 ++++
 libgimp/gimpaspectpreview.h         |    4 ++++
 libgimp/gimpbrush_pdb.h             |    4 ++++
 libgimp/gimpbrushes.h               |    4 ++++
 libgimp/gimpbrushes_pdb.h           |    4 ++++
 libgimp/gimpbrushmenu.h             |    4 ++++
 libgimp/gimpbrushselect.h           |    4 ++++
 libgimp/gimpbrushselect_pdb.h       |    4 ++++
 libgimp/gimpbrushselectbutton.h     |    4 ++++
 libgimp/gimpbuffer_pdb.h            |    4 ++++
 libgimp/gimpchannel.h               |    4 ++++
 libgimp/gimpchannel_pdb.h           |    4 ++++
 libgimp/gimpcolor_pdb.h             |    4 ++++
 libgimp/gimpcontext_pdb.h           |    4 ++++
 libgimp/gimpconvert_pdb.h           |    4 ++++
 libgimp/gimpdisplay_pdb.h           |    4 ++++
 libgimp/gimpdrawable.h              |    4 ++++
 libgimp/gimpdrawable_pdb.h          |    4 ++++
 libgimp/gimpdrawablepreview.h       |    4 ++++
 libgimp/gimpdrawabletransform_pdb.h |    4 ++++
 libgimp/gimpedit_pdb.h              |    4 ++++
 libgimp/gimpexport.h                |    4 ++++
 libgimp/gimpfileops_pdb.h           |    4 ++++
 libgimp/gimpfloatingsel_pdb.h       |    4 ++++
 libgimp/gimpfontmenu.h              |    4 ++++
 libgimp/gimpfonts_pdb.h             |    4 ++++
 libgimp/gimpfontselect.h            |    4 ++++
 libgimp/gimpfontselect_pdb.h        |    4 ++++
 libgimp/gimpfontselectbutton.h      |    4 ++++
 libgimp/gimpgimprc.h                |    4 ++++
 libgimp/gimpgimprc_pdb.h            |    4 ++++
 libgimp/gimpgradient_pdb.h          |    4 ++++
 libgimp/gimpgradientmenu.h          |    4 ++++
 libgimp/gimpgradients.h             |    4 ++++
 libgimp/gimpgradients_pdb.h         |    4 ++++
 libgimp/gimpgradientselect.h        |    4 ++++
 libgimp/gimpgradientselect_pdb.h    |    4 ++++
 libgimp/gimpgradientselectbutton.h  |    4 ++++
 libgimp/gimpgrid_pdb.h              |    4 ++++
 libgimp/gimpguides_pdb.h            |    4 ++++
 libgimp/gimphelp_pdb.h              |    4 ++++
 libgimp/gimpimage.h                 |    4 ++++
 libgimp/gimpimage_pdb.h             |    4 ++++
 libgimp/gimpimagecombobox.h         |    5 ++++-
 libgimp/gimpimageselect_pdb.h       |    4 ++++
 libgimp/gimpitem_pdb.h              |    4 ++++
 libgimp/gimpitemcombobox.h          |    5 ++++-
 libgimp/gimpitemtransform_pdb.h     |    4 ++++
 libgimp/gimplayer.h                 |    4 ++++
 libgimp/gimplayer_pdb.h             |    4 ++++
 libgimp/gimpmenu.h                  |    4 ++++
 libgimp/gimpmessage_pdb.h           |    4 ++++
 libgimp/gimppainttools_pdb.h        |    4 ++++
 libgimp/gimppalette.h               |    4 ++++
 libgimp/gimppalette_pdb.h           |    4 ++++
 libgimp/gimppalettemenu.h           |    4 ++++
 libgimp/gimppalettes.h              |    4 ++++
 libgimp/gimppalettes_pdb.h          |    4 ++++
 libgimp/gimppaletteselect.h         |    4 ++++
 libgimp/gimppaletteselect_pdb.h     |    4 ++++
 libgimp/gimppaletteselectbutton.h   |    4 ++++
 libgimp/gimppaths_pdb.h             |    4 ++++
 libgimp/gimppattern_pdb.h           |    4 ++++
 libgimp/gimppatternmenu.h           |    4 ++++
 libgimp/gimppatterns.h              |    4 ++++
 libgimp/gimppatterns_pdb.h          |    4 ++++
 libgimp/gimppatternselect.h         |    4 ++++
 libgimp/gimppatternselect_pdb.h     |    4 ++++
 libgimp/gimppatternselectbutton.h   |    4 ++++
 libgimp/gimppixbuf.h                |    5 ++++-
 libgimp/gimppixelfetcher.h          |    5 +++++
 libgimp/gimppixelrgn.h              |    4 ++++
 libgimp/gimpplugin.h                |    4 ++++
 libgimp/gimpplugin_pdb.h            |    4 ++++
 libgimp/gimpprocbrowserdialog.h     |    4 ++++
 libgimp/gimpproceduraldb.h          |    4 ++++
 libgimp/gimpproceduraldb_pdb.h      |    4 ++++
 libgimp/gimpprocview.h              |    4 ++++
 libgimp/gimpprogress.h              |    4 ++++
 libgimp/gimpprogress_pdb.h          |    4 ++++
 libgimp/gimpprogressbar.h           |    4 ++++
 libgimp/gimpregioniterator.h        |    4 ++++
 libgimp/gimpselectbutton.h          |    4 ++++
 libgimp/gimpselection.h             |    4 ++++
 libgimp/gimpselection_pdb.h         |    4 ++++
 libgimp/gimpselectiontools_pdb.h    |    4 ++++
 libgimp/gimptextlayer_pdb.h         |    4 ++++
 libgimp/gimptexttool_pdb.h          |    4 ++++
 libgimp/gimptile.h                  |    4 ++++
 libgimp/gimptransformtools_pdb.h    |    4 ++++
 libgimp/gimpui.h                    |    4 ++++
 libgimp/gimpundo_pdb.h              |    4 ++++
 libgimp/gimpunit_pdb.h              |    4 ++++
 libgimp/gimpvectors.h               |    4 ++++
 libgimp/gimpvectors_pdb.h           |    4 ++++
 libgimp/gimpzoompreview.h           |    4 ++++
 tools/pdbgen/lib.pl                 |    8 ++++++++
 100 files changed, 403 insertions(+), 5 deletions(-)
---
diff --git a/libgimp/Makefile.am b/libgimp/Makefile.am
index 86f45ac..11e3969 100644
--- a/libgimp/Makefile.am
+++ b/libgimp/Makefile.am
@@ -58,7 +58,8 @@ endif
 gimpincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimp
 
 AM_CPPFLAGS = \
-	-DG_LOG_DOMAIN=\"LibGimp\"
+	-DG_LOG_DOMAIN=\"LibGimp\"	\
+	-DGIMP_COMPILATION
 
 INCLUDES = \
 	-I$(top_srcdir)	\
diff --git a/libgimp/gimp.h b/libgimp/gimp.h
index f97d7fc..ab054e4 100644
--- a/libgimp/gimp.h
+++ b/libgimp/gimp.h
@@ -29,6 +29,8 @@
 #include <libgimpconfig/gimpconfig.h>
 #include <libgimpmath/gimpmath.h>
 
+#define __GIMP_H_INSIDE__
+
 #include <libgimp/gimpenums.h>
 #include <libgimp/gimptypes.h>
 
@@ -60,11 +62,12 @@
 
 #include <libgimp/gimp_pdb_headers.h>
 
+#undef __GIMP_H_INSIDE__
+
 #ifdef G_OS_WIN32
 #include <stdlib.h> /* For __argc and __argv */
 #endif
 
-
 G_BEGIN_DECLS
 
 
diff --git a/libgimp/gimp_pdb.h b/libgimp/gimp_pdb.h
index b45eacd..d25f05b 100644
--- a/libgimp/gimp_pdb.h
+++ b/libgimp/gimp_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_GIMP_PDB_H__
 #define __GIMP_GIMP_PDB_H__
 
diff --git a/libgimp/gimp_pdb_headers.h b/libgimp/gimp_pdb_headers.h
index 62c3dc0..0a86819 100644
--- a/libgimp/gimp_pdb_headers.h
+++ b/libgimp/gimp_pdb_headers.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PDB_HEADERS_H__
 #define __GIMP_PDB_HEADERS_H__
 
diff --git a/libgimp/gimpaspectpreview.h b/libgimp/gimpaspectpreview.h
index 3bb6d8a..8c2dada 100644
--- a/libgimp/gimpaspectpreview.h
+++ b/libgimp/gimpaspectpreview.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_ASPECT_PREVIEW_H__
 #define __GIMP_ASPECT_PREVIEW_H__
 
diff --git a/libgimp/gimpbrush_pdb.h b/libgimp/gimpbrush_pdb.h
index 3718e5d..6a1b17c 100644
--- a/libgimp/gimpbrush_pdb.h
+++ b/libgimp/gimpbrush_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_BRUSH_PDB_H__
 #define __GIMP_BRUSH_PDB_H__
 
diff --git a/libgimp/gimpbrushes.h b/libgimp/gimpbrushes.h
index 0aeed3a..73b7e6e 100644
--- a/libgimp/gimpbrushes.h
+++ b/libgimp/gimpbrushes.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_BRUSHES_H__
 #define __GIMP_BRUSHES_H__
 
diff --git a/libgimp/gimpbrushes_pdb.h b/libgimp/gimpbrushes_pdb.h
index 41195a5..baaf71c 100644
--- a/libgimp/gimpbrushes_pdb.h
+++ b/libgimp/gimpbrushes_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_BRUSHES_PDB_H__
 #define __GIMP_BRUSHES_PDB_H__
 
diff --git a/libgimp/gimpbrushmenu.h b/libgimp/gimpbrushmenu.h
index 7b7a5be..23964eb 100644
--- a/libgimp/gimpbrushmenu.h
+++ b/libgimp/gimpbrushmenu.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_BRUSH_MENU_H__
 #define __GIMP_BRUSH_MENU_H__
 
diff --git a/libgimp/gimpbrushselect.h b/libgimp/gimpbrushselect.h
index 14643e0..f90c7c2 100644
--- a/libgimp/gimpbrushselect.h
+++ b/libgimp/gimpbrushselect.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_BRUSH_SELECT_H__
 #define __GIMP_BRUSH_SELECT_H__
 
diff --git a/libgimp/gimpbrushselect_pdb.h b/libgimp/gimpbrushselect_pdb.h
index 219ac04..3c6e3fc 100644
--- a/libgimp/gimpbrushselect_pdb.h
+++ b/libgimp/gimpbrushselect_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_BRUSH_SELECT_PDB_H__
 #define __GIMP_BRUSH_SELECT_PDB_H__
 
diff --git a/libgimp/gimpbrushselectbutton.h b/libgimp/gimpbrushselectbutton.h
index 4309ad0..2e7972a 100644
--- a/libgimp/gimpbrushselectbutton.h
+++ b/libgimp/gimpbrushselectbutton.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_BRUSH_SELECT_BUTTON_H__
 #define __GIMP_BRUSH_SELECT_BUTTON_H__
 
diff --git a/libgimp/gimpbuffer_pdb.h b/libgimp/gimpbuffer_pdb.h
index 0d069e1..078463a 100644
--- a/libgimp/gimpbuffer_pdb.h
+++ b/libgimp/gimpbuffer_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_BUFFER_PDB_H__
 #define __GIMP_BUFFER_PDB_H__
 
diff --git a/libgimp/gimpchannel.h b/libgimp/gimpchannel.h
index 849cd1e..5730ad0 100644
--- a/libgimp/gimpchannel.h
+++ b/libgimp/gimpchannel.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_CHANNEL_H__
 #define __GIMP_CHANNEL_H__
 
diff --git a/libgimp/gimpchannel_pdb.h b/libgimp/gimpchannel_pdb.h
index 2b15ef3..446cf1a 100644
--- a/libgimp/gimpchannel_pdb.h
+++ b/libgimp/gimpchannel_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_CHANNEL_PDB_H__
 #define __GIMP_CHANNEL_PDB_H__
 
diff --git a/libgimp/gimpcolor_pdb.h b/libgimp/gimpcolor_pdb.h
index 8e9dbaa..6c7d06c 100644
--- a/libgimp/gimpcolor_pdb.h
+++ b/libgimp/gimpcolor_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_COLOR_PDB_H__
 #define __GIMP_COLOR_PDB_H__
 
diff --git a/libgimp/gimpcontext_pdb.h b/libgimp/gimpcontext_pdb.h
index 165f172..2eff163 100644
--- a/libgimp/gimpcontext_pdb.h
+++ b/libgimp/gimpcontext_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_CONTEXT_PDB_H__
 #define __GIMP_CONTEXT_PDB_H__
 
diff --git a/libgimp/gimpconvert_pdb.h b/libgimp/gimpconvert_pdb.h
index 58f0e3c..1bf1eb4 100644
--- a/libgimp/gimpconvert_pdb.h
+++ b/libgimp/gimpconvert_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_CONVERT_PDB_H__
 #define __GIMP_CONVERT_PDB_H__
 
diff --git a/libgimp/gimpdisplay_pdb.h b/libgimp/gimpdisplay_pdb.h
index b371c43..9b01eb2 100644
--- a/libgimp/gimpdisplay_pdb.h
+++ b/libgimp/gimpdisplay_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_DISPLAY_PDB_H__
 #define __GIMP_DISPLAY_PDB_H__
 
diff --git a/libgimp/gimpdrawable.h b/libgimp/gimpdrawable.h
index 4fa1539..98045d2 100644
--- a/libgimp/gimpdrawable.h
+++ b/libgimp/gimpdrawable.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_DRAWABLE_H__
 #define __GIMP_DRAWABLE_H__
 
diff --git a/libgimp/gimpdrawable_pdb.h b/libgimp/gimpdrawable_pdb.h
index 0cfd721..a0bfb5a 100644
--- a/libgimp/gimpdrawable_pdb.h
+++ b/libgimp/gimpdrawable_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_DRAWABLE_PDB_H__
 #define __GIMP_DRAWABLE_PDB_H__
 
diff --git a/libgimp/gimpdrawablepreview.h b/libgimp/gimpdrawablepreview.h
index adac02c..9767a21 100644
--- a/libgimp/gimpdrawablepreview.h
+++ b/libgimp/gimpdrawablepreview.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_DRAWABLE_PREVIEW_H__
 #define __GIMP_DRAWABLE_PREVIEW_H__
 
diff --git a/libgimp/gimpdrawabletransform_pdb.h b/libgimp/gimpdrawabletransform_pdb.h
index 5d296b7..17dca0f 100644
--- a/libgimp/gimpdrawabletransform_pdb.h
+++ b/libgimp/gimpdrawabletransform_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_DRAWABLE_TRANSFORM_PDB_H__
 #define __GIMP_DRAWABLE_TRANSFORM_PDB_H__
 
diff --git a/libgimp/gimpedit_pdb.h b/libgimp/gimpedit_pdb.h
index 54c8bac..7bfb111 100644
--- a/libgimp/gimpedit_pdb.h
+++ b/libgimp/gimpedit_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_EDIT_PDB_H__
 #define __GIMP_EDIT_PDB_H__
 
diff --git a/libgimp/gimpexport.h b/libgimp/gimpexport.h
index 0dfcfc4..31528ad 100644
--- a/libgimp/gimpexport.h
+++ b/libgimp/gimpexport.h
@@ -19,6 +19,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_EXPORT_H__
 #define __GIMP_EXPORT_H__
 
diff --git a/libgimp/gimpfileops_pdb.h b/libgimp/gimpfileops_pdb.h
index 1a678c8..f22bed7 100644
--- a/libgimp/gimpfileops_pdb.h
+++ b/libgimp/gimpfileops_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_FILEOPS_PDB_H__
 #define __GIMP_FILEOPS_PDB_H__
 
diff --git a/libgimp/gimpfloatingsel_pdb.h b/libgimp/gimpfloatingsel_pdb.h
index 1936ccd..0254494 100644
--- a/libgimp/gimpfloatingsel_pdb.h
+++ b/libgimp/gimpfloatingsel_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_FLOATING_SEL_PDB_H__
 #define __GIMP_FLOATING_SEL_PDB_H__
 
diff --git a/libgimp/gimpfontmenu.h b/libgimp/gimpfontmenu.h
index 98c3d71..05f3780 100644
--- a/libgimp/gimpfontmenu.h
+++ b/libgimp/gimpfontmenu.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_FONT_MENU_H__
 #define __GIMP_FONT_MENU_H__
 
diff --git a/libgimp/gimpfonts_pdb.h b/libgimp/gimpfonts_pdb.h
index f838071..a2f17ae 100644
--- a/libgimp/gimpfonts_pdb.h
+++ b/libgimp/gimpfonts_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_FONTS_PDB_H__
 #define __GIMP_FONTS_PDB_H__
 
diff --git a/libgimp/gimpfontselect.h b/libgimp/gimpfontselect.h
index f4cd083..c0292f6 100644
--- a/libgimp/gimpfontselect.h
+++ b/libgimp/gimpfontselect.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_FONT_SELECT_H__
 #define __GIMP_FONT_SELECT_H__
 
diff --git a/libgimp/gimpfontselect_pdb.h b/libgimp/gimpfontselect_pdb.h
index e032f4c..6853866 100644
--- a/libgimp/gimpfontselect_pdb.h
+++ b/libgimp/gimpfontselect_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_FONT_SELECT_PDB_H__
 #define __GIMP_FONT_SELECT_PDB_H__
 
diff --git a/libgimp/gimpfontselectbutton.h b/libgimp/gimpfontselectbutton.h
index 9874b11..f9dc241 100644
--- a/libgimp/gimpfontselectbutton.h
+++ b/libgimp/gimpfontselectbutton.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_FONT_SELECT_BUTTON_H__
 #define __GIMP_FONT_SELECT_BUTTON_H__
 
diff --git a/libgimp/gimpgimprc.h b/libgimp/gimpgimprc.h
index 4408b13..6f264d8 100644
--- a/libgimp/gimpgimprc.h
+++ b/libgimp/gimpgimprc.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_GIMPRC_H__
 #define __GIMP_GIMPRC_H__
 
diff --git a/libgimp/gimpgimprc_pdb.h b/libgimp/gimpgimprc_pdb.h
index d4f2005..e26ca84 100644
--- a/libgimp/gimpgimprc_pdb.h
+++ b/libgimp/gimpgimprc_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_GIMPRC_PDB_H__
 #define __GIMP_GIMPRC_PDB_H__
 
diff --git a/libgimp/gimpgradient_pdb.h b/libgimp/gimpgradient_pdb.h
index b3940a4..0d734c8 100644
--- a/libgimp/gimpgradient_pdb.h
+++ b/libgimp/gimpgradient_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_GRADIENT_PDB_H__
 #define __GIMP_GRADIENT_PDB_H__
 
diff --git a/libgimp/gimpgradientmenu.h b/libgimp/gimpgradientmenu.h
index 278e110..169ccbb 100644
--- a/libgimp/gimpgradientmenu.h
+++ b/libgimp/gimpgradientmenu.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_GRAIDENT_MENU_H__
 #define __GIMP_GRADIENT_MENU_H__
 
diff --git a/libgimp/gimpgradients.h b/libgimp/gimpgradients.h
index 70221e2..ebd4319 100644
--- a/libgimp/gimpgradients.h
+++ b/libgimp/gimpgradients.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_GRADIENTS_H__
 #define __GIMP_GRADIENTS_H__
 
diff --git a/libgimp/gimpgradients_pdb.h b/libgimp/gimpgradients_pdb.h
index f109c82..aa901ec 100644
--- a/libgimp/gimpgradients_pdb.h
+++ b/libgimp/gimpgradients_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_GRADIENTS_PDB_H__
 #define __GIMP_GRADIENTS_PDB_H__
 
diff --git a/libgimp/gimpgradientselect.h b/libgimp/gimpgradientselect.h
index 3b0db24..815e13b 100644
--- a/libgimp/gimpgradientselect.h
+++ b/libgimp/gimpgradientselect.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_GRAIDENT_SELECT_H__
 #define __GIMP_GRADIENT_SELECT_H__
 
diff --git a/libgimp/gimpgradientselect_pdb.h b/libgimp/gimpgradientselect_pdb.h
index 849ddcf..cd91133 100644
--- a/libgimp/gimpgradientselect_pdb.h
+++ b/libgimp/gimpgradientselect_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_GRADIENT_SELECT_PDB_H__
 #define __GIMP_GRADIENT_SELECT_PDB_H__
 
diff --git a/libgimp/gimpgradientselectbutton.h b/libgimp/gimpgradientselectbutton.h
index fd5563b..c268acc 100644
--- a/libgimp/gimpgradientselectbutton.h
+++ b/libgimp/gimpgradientselectbutton.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_GRADIENT_SELECT_BUTTON_H__
 #define __GIMP_GRADIENT_SELECT_BUTTON_H__
 
diff --git a/libgimp/gimpgrid_pdb.h b/libgimp/gimpgrid_pdb.h
index b741b1e..5043572 100644
--- a/libgimp/gimpgrid_pdb.h
+++ b/libgimp/gimpgrid_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_GRID_PDB_H__
 #define __GIMP_GRID_PDB_H__
 
diff --git a/libgimp/gimpguides_pdb.h b/libgimp/gimpguides_pdb.h
index 5855f60..4d08956 100644
--- a/libgimp/gimpguides_pdb.h
+++ b/libgimp/gimpguides_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_GUIDES_PDB_H__
 #define __GIMP_GUIDES_PDB_H__
 
diff --git a/libgimp/gimphelp_pdb.h b/libgimp/gimphelp_pdb.h
index d9427e7..02188e1 100644
--- a/libgimp/gimphelp_pdb.h
+++ b/libgimp/gimphelp_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_HELP_PDB_H__
 #define __GIMP_HELP_PDB_H__
 
diff --git a/libgimp/gimpimage.h b/libgimp/gimpimage.h
index 5a49767..33db3bb 100644
--- a/libgimp/gimpimage.h
+++ b/libgimp/gimpimage.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_IMAGE_H__
 #define __GIMP_IMAGE_H__
 
diff --git a/libgimp/gimpimage_pdb.h b/libgimp/gimpimage_pdb.h
index 194a021..0d2fa24 100644
--- a/libgimp/gimpimage_pdb.h
+++ b/libgimp/gimpimage_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_IMAGE_PDB_H__
 #define __GIMP_IMAGE_PDB_H__
 
diff --git a/libgimp/gimpimagecombobox.h b/libgimp/gimpimagecombobox.h
index 4860d45..53b4c26 100644
--- a/libgimp/gimpimagecombobox.h
+++ b/libgimp/gimpimagecombobox.h
@@ -19,10 +19,13 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_IMAGE_COMBO_BOX_H__
 #define __GIMP_IMAGE_COMBO_BOX_H__
 
-
 G_BEGIN_DECLS
 
 /* For information look into the C source or the html documentation */
diff --git a/libgimp/gimpimageselect_pdb.h b/libgimp/gimpimageselect_pdb.h
index f544bb3..66ece36 100644
--- a/libgimp/gimpimageselect_pdb.h
+++ b/libgimp/gimpimageselect_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_IMAGE_SELECT_PDB_H__
 #define __GIMP_IMAGE_SELECT_PDB_H__
 
diff --git a/libgimp/gimpitem_pdb.h b/libgimp/gimpitem_pdb.h
index e372748..04788a4 100644
--- a/libgimp/gimpitem_pdb.h
+++ b/libgimp/gimpitem_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_ITEM_PDB_H__
 #define __GIMP_ITEM_PDB_H__
 
diff --git a/libgimp/gimpitemcombobox.h b/libgimp/gimpitemcombobox.h
index 93efcde..d0d58fe 100644
--- a/libgimp/gimpitemcombobox.h
+++ b/libgimp/gimpitemcombobox.h
@@ -20,10 +20,13 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_ITEM_COMBO_BOX_H__
 #define __GIMP_ITEM_COMBO_BOX_H__
 
-
 G_BEGIN_DECLS
 
 /* For information look into the C source or the html documentation */
diff --git a/libgimp/gimpitemtransform_pdb.h b/libgimp/gimpitemtransform_pdb.h
index 03bd917..f0bc831 100644
--- a/libgimp/gimpitemtransform_pdb.h
+++ b/libgimp/gimpitemtransform_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_ITEM_TRANSFORM_PDB_H__
 #define __GIMP_ITEM_TRANSFORM_PDB_H__
 
diff --git a/libgimp/gimplayer.h b/libgimp/gimplayer.h
index b51ebd7..e1611a5 100644
--- a/libgimp/gimplayer.h
+++ b/libgimp/gimplayer.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_LAYER_H__
 #define __GIMP_LAYER_H__
 
diff --git a/libgimp/gimplayer_pdb.h b/libgimp/gimplayer_pdb.h
index 9d77ab8..4c192cd 100644
--- a/libgimp/gimplayer_pdb.h
+++ b/libgimp/gimplayer_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_LAYER_PDB_H__
 #define __GIMP_LAYER_PDB_H__
 
diff --git a/libgimp/gimpmenu.h b/libgimp/gimpmenu.h
index f292f6b..491ed30 100644
--- a/libgimp/gimpmenu.h
+++ b/libgimp/gimpmenu.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_MENU_H__
 #define __GIMP_MENU_H__
 
diff --git a/libgimp/gimpmessage_pdb.h b/libgimp/gimpmessage_pdb.h
index d0c2061..a9083b6 100644
--- a/libgimp/gimpmessage_pdb.h
+++ b/libgimp/gimpmessage_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_MESSAGE_PDB_H__
 #define __GIMP_MESSAGE_PDB_H__
 
diff --git a/libgimp/gimppainttools_pdb.h b/libgimp/gimppainttools_pdb.h
index 8a6b350..a9f78c6 100644
--- a/libgimp/gimppainttools_pdb.h
+++ b/libgimp/gimppainttools_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PAINT_TOOLS_PDB_H__
 #define __GIMP_PAINT_TOOLS_PDB_H__
 
diff --git a/libgimp/gimppalette.h b/libgimp/gimppalette.h
index a9952ed..6beef59 100644
--- a/libgimp/gimppalette.h
+++ b/libgimp/gimppalette.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PALETTE_H__
 #define __GIMP_PALETTE_H__
 
diff --git a/libgimp/gimppalette_pdb.h b/libgimp/gimppalette_pdb.h
index 3b5edf9..451071b 100644
--- a/libgimp/gimppalette_pdb.h
+++ b/libgimp/gimppalette_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PALETTE_PDB_H__
 #define __GIMP_PALETTE_PDB_H__
 
diff --git a/libgimp/gimppalettemenu.h b/libgimp/gimppalettemenu.h
index 2754806..2368a18 100644
--- a/libgimp/gimppalettemenu.h
+++ b/libgimp/gimppalettemenu.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PALETTE_MENU_H__
 #define __GIMP_PALETTE_MENU_H__
 
diff --git a/libgimp/gimppalettes.h b/libgimp/gimppalettes.h
index 9f519b1..1aa80b9 100644
--- a/libgimp/gimppalettes.h
+++ b/libgimp/gimppalettes.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PALETTES_H__
 #define __GIMP_PALETTES_H__
 
diff --git a/libgimp/gimppalettes_pdb.h b/libgimp/gimppalettes_pdb.h
index 703d2df..877c922 100644
--- a/libgimp/gimppalettes_pdb.h
+++ b/libgimp/gimppalettes_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PALETTES_PDB_H__
 #define __GIMP_PALETTES_PDB_H__
 
diff --git a/libgimp/gimppaletteselect.h b/libgimp/gimppaletteselect.h
index 502954a..a4afeeb 100644
--- a/libgimp/gimppaletteselect.h
+++ b/libgimp/gimppaletteselect.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PALETTE_SELECT_H__
 #define __GIMP_PALETTE_SELECT_H__
 
diff --git a/libgimp/gimppaletteselect_pdb.h b/libgimp/gimppaletteselect_pdb.h
index 6d3c317..b116a68 100644
--- a/libgimp/gimppaletteselect_pdb.h
+++ b/libgimp/gimppaletteselect_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PALETTE_SELECT_PDB_H__
 #define __GIMP_PALETTE_SELECT_PDB_H__
 
diff --git a/libgimp/gimppaletteselectbutton.h b/libgimp/gimppaletteselectbutton.h
index d141dab..ff0b02b 100644
--- a/libgimp/gimppaletteselectbutton.h
+++ b/libgimp/gimppaletteselectbutton.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PALETTE_SELECT_BUTTON_H__
 #define __GIMP_PALETTE_SELECT_BUTTON_H__
 
diff --git a/libgimp/gimppaths_pdb.h b/libgimp/gimppaths_pdb.h
index e3f54df..a70bc87 100644
--- a/libgimp/gimppaths_pdb.h
+++ b/libgimp/gimppaths_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PATHS_PDB_H__
 #define __GIMP_PATHS_PDB_H__
 
diff --git a/libgimp/gimppattern_pdb.h b/libgimp/gimppattern_pdb.h
index 053f8af..afb8687 100644
--- a/libgimp/gimppattern_pdb.h
+++ b/libgimp/gimppattern_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PATTERN_PDB_H__
 #define __GIMP_PATTERN_PDB_H__
 
diff --git a/libgimp/gimppatternmenu.h b/libgimp/gimppatternmenu.h
index 765ae69..0c95f66 100644
--- a/libgimp/gimppatternmenu.h
+++ b/libgimp/gimppatternmenu.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PATTERN_MENU_H__
 #define __GIMP_PATTERN_MENU_H__
 
diff --git a/libgimp/gimppatterns.h b/libgimp/gimppatterns.h
index aaa4b52..23b8885 100644
--- a/libgimp/gimppatterns.h
+++ b/libgimp/gimppatterns.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PATTERNS_H__
 #define __GIMP_PATTERNS_H__
 
diff --git a/libgimp/gimppatterns_pdb.h b/libgimp/gimppatterns_pdb.h
index 4bbbfec..a1e878d 100644
--- a/libgimp/gimppatterns_pdb.h
+++ b/libgimp/gimppatterns_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PATTERNS_PDB_H__
 #define __GIMP_PATTERNS_PDB_H__
 
diff --git a/libgimp/gimppatternselect.h b/libgimp/gimppatternselect.h
index 96cc0ac..266949f 100644
--- a/libgimp/gimppatternselect.h
+++ b/libgimp/gimppatternselect.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PATTERN_SELECT_H__
 #define __GIMP_PATTERN_SELECT_H__
 
diff --git a/libgimp/gimppatternselect_pdb.h b/libgimp/gimppatternselect_pdb.h
index 4a05461..2db2ff2 100644
--- a/libgimp/gimppatternselect_pdb.h
+++ b/libgimp/gimppatternselect_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PATTERN_SELECT_PDB_H__
 #define __GIMP_PATTERN_SELECT_PDB_H__
 
diff --git a/libgimp/gimppatternselectbutton.h b/libgimp/gimppatternselectbutton.h
index 56626b9..f4871cc 100644
--- a/libgimp/gimppatternselectbutton.h
+++ b/libgimp/gimppatternselectbutton.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PATTERN_SELECT_BUTTON_H__
 #define __GIMP_PATTERN_SELECT_BUTTON_H__
 
diff --git a/libgimp/gimppixbuf.h b/libgimp/gimppixbuf.h
index 431fa8d..d39724a 100644
--- a/libgimp/gimppixbuf.h
+++ b/libgimp/gimppixbuf.h
@@ -19,10 +19,13 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PIXBUF_H__
 #define __GIMP_PIXBUF_H__
 
-
 G_BEGIN_DECLS
 
 /* For information look into the C source or the html documentation */
diff --git a/libgimp/gimppixelfetcher.h b/libgimp/gimppixelfetcher.h
index c16872f..710b532 100644
--- a/libgimp/gimppixelfetcher.h
+++ b/libgimp/gimppixelfetcher.h
@@ -22,6 +22,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PIXEL_FETCHER_H__
 #define __GIMP_PIXEL_FETCHER_H__
 
@@ -29,6 +33,7 @@ G_BEGIN_DECLS
 
 /* For information look into the C source or the html documentation */
 
+
 typedef enum
 {
   GIMP_PIXEL_FETCHER_EDGE_NONE,
diff --git a/libgimp/gimppixelrgn.h b/libgimp/gimppixelrgn.h
index 2e34d52..97c1775 100644
--- a/libgimp/gimppixelrgn.h
+++ b/libgimp/gimppixelrgn.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PIXEL_RGN_H__
 #define __GIMP_PIXEL_RGN_H__
 
diff --git a/libgimp/gimpplugin.h b/libgimp/gimpplugin.h
index 461c653..031c8e5 100644
--- a/libgimp/gimpplugin.h
+++ b/libgimp/gimpplugin.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PLUG_IN_H__
 #define __GIMP_PLUG_IN_H__
 
diff --git a/libgimp/gimpplugin_pdb.h b/libgimp/gimpplugin_pdb.h
index 4f5bc03..2f15099 100644
--- a/libgimp/gimpplugin_pdb.h
+++ b/libgimp/gimpplugin_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PLUG_IN_PDB_H__
 #define __GIMP_PLUG_IN_PDB_H__
 
diff --git a/libgimp/gimpprocbrowserdialog.h b/libgimp/gimpprocbrowserdialog.h
index 8b54a60..508aefc 100644
--- a/libgimp/gimpprocbrowserdialog.h
+++ b/libgimp/gimpprocbrowserdialog.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PROC_BROWSER_DIALOG_H__
 #define __GIMP_PROC_BROWSER_DIALOG_H__
 
diff --git a/libgimp/gimpproceduraldb.h b/libgimp/gimpproceduraldb.h
index 3b2518a..cbbdb18 100644
--- a/libgimp/gimpproceduraldb.h
+++ b/libgimp/gimpproceduraldb.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PROCEDURAL_DB_H__
 #define __GIMP_PROCEDURAL_DB_H__
 
diff --git a/libgimp/gimpproceduraldb_pdb.h b/libgimp/gimpproceduraldb_pdb.h
index d759f2f..718c49b 100644
--- a/libgimp/gimpproceduraldb_pdb.h
+++ b/libgimp/gimpproceduraldb_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PROCEDURAL_DB_PDB_H__
 #define __GIMP_PROCEDURAL_DB_PDB_H__
 
diff --git a/libgimp/gimpprocview.h b/libgimp/gimpprocview.h
index 5f88522..c83052a 100644
--- a/libgimp/gimpprocview.h
+++ b/libgimp/gimpprocview.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PROC_VIEW_H__
 #define __GIMP_PROC_VIEW_H__
 
diff --git a/libgimp/gimpprogress.h b/libgimp/gimpprogress.h
index 5b6b5f5..a0c08f0 100644
--- a/libgimp/gimpprogress.h
+++ b/libgimp/gimpprogress.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PROGRESS_H__
 #define __GIMP_PROGRESS_H__
 
diff --git a/libgimp/gimpprogress_pdb.h b/libgimp/gimpprogress_pdb.h
index 990b0ef..2508fd4 100644
--- a/libgimp/gimpprogress_pdb.h
+++ b/libgimp/gimpprogress_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PROGRESS_PDB_H__
 #define __GIMP_PROGRESS_PDB_H__
 
diff --git a/libgimp/gimpprogressbar.h b/libgimp/gimpprogressbar.h
index bcb3be4..f9016f1 100644
--- a/libgimp/gimpprogressbar.h
+++ b/libgimp/gimpprogressbar.h
@@ -19,6 +19,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_PROGRESS_BAR_H__
 #define __GIMP_PROGRESS_BAR_H__
 
diff --git a/libgimp/gimpregioniterator.h b/libgimp/gimpregioniterator.h
index 8a87325..e8a8f5d 100644
--- a/libgimp/gimpregioniterator.h
+++ b/libgimp/gimpregioniterator.h
@@ -22,6 +22,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_REGION_ITERATOR_H__
 #define __GIMP_REGION_ITERATOR_H__
 
diff --git a/libgimp/gimpselectbutton.h b/libgimp/gimpselectbutton.h
index 973f2e1..db91c33 100644
--- a/libgimp/gimpselectbutton.h
+++ b/libgimp/gimpselectbutton.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_SELECT_BUTTON_H__
 #define __GIMP_SELECT_BUTTON_H__
 
diff --git a/libgimp/gimpselection.h b/libgimp/gimpselection.h
index 5a2080b..e3b28f2 100644
--- a/libgimp/gimpselection.h
+++ b/libgimp/gimpselection.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_SELECTION_H__
 #define __GIMP_SELECTION_H__
 
diff --git a/libgimp/gimpselection_pdb.h b/libgimp/gimpselection_pdb.h
index c6f52ae..00d154c 100644
--- a/libgimp/gimpselection_pdb.h
+++ b/libgimp/gimpselection_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_SELECTION_PDB_H__
 #define __GIMP_SELECTION_PDB_H__
 
diff --git a/libgimp/gimpselectiontools_pdb.h b/libgimp/gimpselectiontools_pdb.h
index 034ebdf..73cd684 100644
--- a/libgimp/gimpselectiontools_pdb.h
+++ b/libgimp/gimpselectiontools_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_SELECTION_TOOLS_PDB_H__
 #define __GIMP_SELECTION_TOOLS_PDB_H__
 
diff --git a/libgimp/gimptextlayer_pdb.h b/libgimp/gimptextlayer_pdb.h
index bb07df9..031d361 100644
--- a/libgimp/gimptextlayer_pdb.h
+++ b/libgimp/gimptextlayer_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_TEXT_LAYER_PDB_H__
 #define __GIMP_TEXT_LAYER_PDB_H__
 
diff --git a/libgimp/gimptexttool_pdb.h b/libgimp/gimptexttool_pdb.h
index 4f43de1..530c355 100644
--- a/libgimp/gimptexttool_pdb.h
+++ b/libgimp/gimptexttool_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_TEXT_TOOL_PDB_H__
 #define __GIMP_TEXT_TOOL_PDB_H__
 
diff --git a/libgimp/gimptile.h b/libgimp/gimptile.h
index f373c6c..7c1868f 100644
--- a/libgimp/gimptile.h
+++ b/libgimp/gimptile.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_TILE_H__
 #define __GIMP_TILE_H__
 
diff --git a/libgimp/gimptransformtools_pdb.h b/libgimp/gimptransformtools_pdb.h
index 125d824..294051f 100644
--- a/libgimp/gimptransformtools_pdb.h
+++ b/libgimp/gimptransformtools_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_TRANSFORM_TOOLS_PDB_H__
 #define __GIMP_TRANSFORM_TOOLS_PDB_H__
 
diff --git a/libgimp/gimpui.h b/libgimp/gimpui.h
index 1e8baaf..84fdea9 100644
--- a/libgimp/gimpui.h
+++ b/libgimp/gimpui.h
@@ -23,6 +23,8 @@
 
 #include <libgimpwidgets/gimpwidgets.h>
 
+#define __GIMP_UI_H_INSIDE__
+
 #include <libgimp/gimpuitypes.h>
 
 #include <libgimp/gimpexport.h>
@@ -47,6 +49,8 @@
 #include <libgimp/gimppatternselectbutton.h>
 #include <libgimp/gimpzoompreview.h>
 
+#undef __GIMP_UI_H_INSIDE__
+
 G_BEGIN_DECLS
 
 /* For information look into the C source or the html documentation */
diff --git a/libgimp/gimpundo_pdb.h b/libgimp/gimpundo_pdb.h
index c2635f2..ec6b851 100644
--- a/libgimp/gimpundo_pdb.h
+++ b/libgimp/gimpundo_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_UNDO_PDB_H__
 #define __GIMP_UNDO_PDB_H__
 
diff --git a/libgimp/gimpunit_pdb.h b/libgimp/gimpunit_pdb.h
index a6059d2..85cd1ae 100644
--- a/libgimp/gimpunit_pdb.h
+++ b/libgimp/gimpunit_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_UNIT_PDB_H__
 #define __GIMP_UNIT_PDB_H__
 
diff --git a/libgimp/gimpvectors.h b/libgimp/gimpvectors.h
index 3210ba5..15c266f 100644
--- a/libgimp/gimpvectors.h
+++ b/libgimp/gimpvectors.h
@@ -18,6 +18,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_VECTORS_H__
 #define __GIMP_VECTORS_H__
 
diff --git a/libgimp/gimpvectors_pdb.h b/libgimp/gimpvectors_pdb.h
index d47f73f..c6dc3ac 100644
--- a/libgimp/gimpvectors_pdb.h
+++ b/libgimp/gimpvectors_pdb.h
@@ -20,6 +20,10 @@
 
 /* NOTE: This file is auto-generated by pdbgen.pl */
 
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef __GIMP_VECTORS_PDB_H__
 #define __GIMP_VECTORS_PDB_H__
 
diff --git a/libgimp/gimpzoompreview.h b/libgimp/gimpzoompreview.h
index f45f335..f6ae383 100644
--- a/libgimp/gimpzoompreview.h
+++ b/libgimp/gimpzoompreview.h
@@ -19,6 +19,10 @@
  * <http://www.gnu.org/licenses/>.
  */
 
+#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimpui.h> can be included directly."
+#endif
+
 #ifndef __GIMP_ZOOM_PREVIEW_H__
 #define __GIMP_ZOOM_PREVIEW_H__
 
diff --git a/tools/pdbgen/lib.pl b/tools/pdbgen/lib.pl
index 5481304..9f55f80 100644
--- a/tools/pdbgen/lib.pl
+++ b/tools/pdbgen/lib.pl
@@ -630,6 +630,10 @@ LGPL
         print HFILE $lgpl_bottom;
  	my $guard = "__GIMP_\U$group\E_PDB_H__";
 	print HFILE <<HEADER;
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef $guard
 #define $guard
 
@@ -687,6 +691,10 @@ SECTION_DOCS
         print PFILE $lgpl_bottom;
 	my $guard = "__GIMP_PDB_HEADERS_H__";
 	print PFILE <<HEADER;
+#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
+#error "Only <libgimp/gimp.h> can be included directly."
+#endif
+
 #ifndef $guard
 #define $guard
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]