gtk+ r20217 - in trunk: . gdk gdk/win32 gdk/x11



Author: mitch
Date: Wed May 28 14:01:57 2008
New Revision: 20217
URL: http://svn.gnome.org/viewvc/gtk+?rev=20217&view=rev

Log:
2008-05-28  Michael Natterer  <mitch imendio com>

	* gdk/gdk.h: define __GDK_H_INSIDE__ around including all other
	headers.

	* gdk/gdkenumtypes.h.template
	* gdk/gdk*.h: add single-include guards that #error out if
	GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
	included individually. Also removed some redundant includes and
	did some tiny trailing whitespace removal that's not worth to
	commit separately.

	* gdk/gdkprivate.h: include <gdk/gdk.h> instead of individual
	files.

	* gdk/win32/gdkwin32.h
	* gdk/x11/gdkx.h: only include <gdk/gdkprivate.h> and remove all
	other includes.



Modified:
   trunk/ChangeLog
   trunk/gdk/gdk.h
   trunk/gdk/gdkapplaunchcontext.h
   trunk/gdk/gdkcairo.h
   trunk/gdk/gdkcolor.h
   trunk/gdk/gdkcursor.h
   trunk/gdk/gdkdisplay.h
   trunk/gdk/gdkdisplaymanager.h
   trunk/gdk/gdkdnd.h
   trunk/gdk/gdkdrawable.h
   trunk/gdk/gdkenumtypes.h.template
   trunk/gdk/gdkevents.h
   trunk/gdk/gdkgc.h
   trunk/gdk/gdkimage.h
   trunk/gdk/gdkinput.h
   trunk/gdk/gdkkeys.h
   trunk/gdk/gdkpango.h
   trunk/gdk/gdkpixbuf.h
   trunk/gdk/gdkpixmap.h
   trunk/gdk/gdkprivate.h
   trunk/gdk/gdkproperty.h
   trunk/gdk/gdkregion.h
   trunk/gdk/gdkrgb.h
   trunk/gdk/gdkscreen.h
   trunk/gdk/gdkselection.h
   trunk/gdk/gdkspawn.h
   trunk/gdk/gdktestutils.h
   trunk/gdk/gdktypes.h
   trunk/gdk/gdkvisual.h
   trunk/gdk/gdkwindow.h
   trunk/gdk/win32/gdkwin32.h
   trunk/gdk/x11/gdkx.h

Modified: trunk/gdk/gdk.h
==============================================================================
--- trunk/gdk/gdk.h	(original)
+++ trunk/gdk/gdk.h	Wed May 28 14:01:57 2008
@@ -27,6 +27,8 @@
 #ifndef __GDK_H__
 #define __GDK_H__
 
+#define __GDK_H_INSIDE__
+
 #include <gdk/gdkapplaunchcontext.h>
 #include <gdk/gdkcairo.h>
 #include <gdk/gdkcolor.h>
@@ -56,6 +58,8 @@
 #include <gdk/gdkvisual.h>
 #include <gdk/gdkwindow.h>
 
+#undef __GDK_H_INSIDE__
+
 G_BEGIN_DECLS
 
 

Modified: trunk/gdk/gdkapplaunchcontext.h
==============================================================================
--- trunk/gdk/gdkapplaunchcontext.h	(original)
+++ trunk/gdk/gdkapplaunchcontext.h	Wed May 28 14:01:57 2008
@@ -20,6 +20,10 @@
    Author: Alexander Larsson <alexl redhat com>
 */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_APP_LAUNCH_CONTEXT_H__
 #define __GDK_APP_LAUNCH_CONTEXT_H__
 

Modified: trunk/gdk/gdkcairo.h
==============================================================================
--- trunk/gdk/gdkcairo.h	(original)
+++ trunk/gdk/gdkcairo.h	Wed May 28 14:01:57 2008
@@ -17,6 +17,10 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_CAIRO_H__
 #define __GDK_CAIRO_H__
 

Modified: trunk/gdk/gdkcolor.h
==============================================================================
--- trunk/gdk/gdkcolor.h	(original)
+++ trunk/gdk/gdkcolor.h	Wed May 28 14:01:57 2008
@@ -21,9 +21,13 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_COLOR_H__
 #define __GDK_COLOR_H__
 

Modified: trunk/gdk/gdkcursor.h
==============================================================================
--- trunk/gdk/gdkcursor.h	(original)
+++ trunk/gdk/gdkcursor.h	Wed May 28 14:01:57 2008
@@ -21,9 +21,13 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_CURSOR_H__
 #define __GDK_CURSOR_H__
 

Modified: trunk/gdk/gdkdisplay.h
==============================================================================
--- trunk/gdk/gdkdisplay.h	(original)
+++ trunk/gdk/gdkdisplay.h	Wed May 28 14:01:57 2008
@@ -21,12 +21,15 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_DISPLAY_H__
 #define __GDK_DISPLAY_H__
 
 #include <gdk/gdktypes.h>
 #include <gdk/gdkevents.h>
-#include <glib-object.h>
 
 G_BEGIN_DECLS
 

Modified: trunk/gdk/gdkdisplaymanager.h
==============================================================================
--- trunk/gdk/gdkdisplaymanager.h	(original)
+++ trunk/gdk/gdkdisplaymanager.h	Wed May 28 14:01:57 2008
@@ -24,6 +24,10 @@
  * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_DISPLAY_MANAGER_H__
 #define __GDK_DISPLAY_MANAGER_H__
 

Modified: trunk/gdk/gdkdnd.h
==============================================================================
--- trunk/gdk/gdkdnd.h	(original)
+++ trunk/gdk/gdkdnd.h	Wed May 28 14:01:57 2008
@@ -21,8 +21,13 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
+
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_DND_H__
 #define __GDK_DND_H__
 

Modified: trunk/gdk/gdkdrawable.h
==============================================================================
--- trunk/gdk/gdkdrawable.h	(original)
+++ trunk/gdk/gdkdrawable.h	Wed May 28 14:01:57 2008
@@ -21,8 +21,13 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
+
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_DRAWABLE_H__
 #define __GDK_DRAWABLE_H__
 

Modified: trunk/gdk/gdkenumtypes.h.template
==============================================================================
--- trunk/gdk/gdkenumtypes.h.template	(original)
+++ trunk/gdk/gdkenumtypes.h.template	Wed May 28 14:01:57 2008
@@ -1,4 +1,8 @@
 /*** BEGIN file-header ***/
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_ENUM_TYPES_H__
 #define __GDK_ENUM_TYPES_H__
 

Modified: trunk/gdk/gdkevents.h
==============================================================================
--- trunk/gdk/gdkevents.h	(original)
+++ trunk/gdk/gdkevents.h	Wed May 28 14:01:57 2008
@@ -21,9 +21,13 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_EVENTS_H__
 #define __GDK_EVENTS_H__
 

Modified: trunk/gdk/gdkgc.h
==============================================================================
--- trunk/gdk/gdkgc.h	(original)
+++ trunk/gdk/gdkgc.h	Wed May 28 14:01:57 2008
@@ -21,9 +21,13 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_GC_H__
 #define __GDK_GC_H__
 

Modified: trunk/gdk/gdkimage.h
==============================================================================
--- trunk/gdk/gdkimage.h	(original)
+++ trunk/gdk/gdkimage.h	Wed May 28 14:01:57 2008
@@ -21,9 +21,13 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_IMAGE_H__
 #define __GDK_IMAGE_H__
 

Modified: trunk/gdk/gdkinput.h
==============================================================================
--- trunk/gdk/gdkinput.h	(original)
+++ trunk/gdk/gdkinput.h	Wed May 28 14:01:57 2008
@@ -21,9 +21,13 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_INPUT_H__
 #define __GDK_INPUT_H__
 

Modified: trunk/gdk/gdkkeys.h
==============================================================================
--- trunk/gdk/gdkkeys.h	(original)
+++ trunk/gdk/gdkkeys.h	Wed May 28 14:01:57 2008
@@ -24,6 +24,10 @@
  * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_KEYS_H__
 #define __GDK_KEYS_H__
 

Modified: trunk/gdk/gdkpango.h
==============================================================================
--- trunk/gdk/gdkpango.h	(original)
+++ trunk/gdk/gdkpango.h	Wed May 28 14:01:57 2008
@@ -17,6 +17,10 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_PANGO_H__
 #define __GDK_PANGO_H__
 

Modified: trunk/gdk/gdkpixbuf.h
==============================================================================
--- trunk/gdk/gdkpixbuf.h	(original)
+++ trunk/gdk/gdkpixbuf.h	Wed May 28 14:01:57 2008
@@ -21,9 +21,13 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_PIXBUF_H__
 #define __GDK_PIXBUF_H__
 

Modified: trunk/gdk/gdkpixmap.h
==============================================================================
--- trunk/gdk/gdkpixmap.h	(original)
+++ trunk/gdk/gdkpixmap.h	Wed May 28 14:01:57 2008
@@ -21,9 +21,13 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_PIXMAP_H__
 #define __GDK_PIXMAP_H__
 

Modified: trunk/gdk/gdkprivate.h
==============================================================================
--- trunk/gdk/gdkprivate.h	(original)
+++ trunk/gdk/gdkprivate.h	Wed May 28 14:01:57 2008
@@ -27,14 +27,7 @@
 #ifndef __GDK_PRIVATE_H__
 #define __GDK_PRIVATE_H__
 
-#include <gdk/gdktypes.h>
-#include <gdk/gdkevents.h>
-#include <gdk/gdkfont.h>
-#include <gdk/gdkgc.h>
-#include <gdk/gdkimage.h>
-#include <gdk/gdkregion.h>
-#include <gdk/gdkvisual.h>
-#include <gdk/gdkwindow.h>
+#include <gdk/gdk.h>
 
 G_BEGIN_DECLS
 

Modified: trunk/gdk/gdkproperty.h
==============================================================================
--- trunk/gdk/gdkproperty.h	(original)
+++ trunk/gdk/gdkproperty.h	Wed May 28 14:01:57 2008
@@ -21,9 +21,13 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_PROPERTY_H__
 #define __GDK_PROPERTY_H__
 

Modified: trunk/gdk/gdkregion.h
==============================================================================
--- trunk/gdk/gdkregion.h	(original)
+++ trunk/gdk/gdkregion.h	Wed May 28 14:01:57 2008
@@ -21,9 +21,13 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_REGION_H__
 #define __GDK_REGION_H__
 

Modified: trunk/gdk/gdkrgb.h
==============================================================================
--- trunk/gdk/gdkrgb.h	(original)
+++ trunk/gdk/gdkrgb.h	Wed May 28 14:01:57 2008
@@ -21,9 +21,13 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_RGB_H__
 #define __GDK_RGB_H__
 

Modified: trunk/gdk/gdkscreen.h
==============================================================================
--- trunk/gdk/gdkscreen.h	(original)
+++ trunk/gdk/gdkscreen.h	Wed May 28 14:01:57 2008
@@ -21,6 +21,10 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_SCREEN_H__
 #define __GDK_SCREEN_H__
 

Modified: trunk/gdk/gdkselection.h
==============================================================================
--- trunk/gdk/gdkselection.h	(original)
+++ trunk/gdk/gdkselection.h	Wed May 28 14:01:57 2008
@@ -21,9 +21,13 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_SELECTION_H__
 #define __GDK_SELECTION_H__
 

Modified: trunk/gdk/gdkspawn.h
==============================================================================
--- trunk/gdk/gdkspawn.h	(original)
+++ trunk/gdk/gdkspawn.h	Wed May 28 14:01:57 2008
@@ -19,6 +19,10 @@
  * Authors: Mark McLoughlin <mark skynet ie>
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_SPAWN_H__
 #define __GDK_SPAWN_H__
 

Modified: trunk/gdk/gdktestutils.h
==============================================================================
--- trunk/gdk/gdktestutils.h	(original)
+++ trunk/gdk/gdktestutils.h	Wed May 28 14:01:57 2008
@@ -17,6 +17,11 @@
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  */
+
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_TEST_UTILS_H__
 #define __GDK_TEST_UTILS_H__
 
@@ -38,6 +43,7 @@
                                                  guint           button, /*1..3*/
                                                  GdkModifierType modifiers,
                                                  GdkEventType    button_pressrelease);
+
 G_END_DECLS
 
 #endif /* __GDK_TEST_UTILS_H__ */

Modified: trunk/gdk/gdktypes.h
==============================================================================
--- trunk/gdk/gdktypes.h	(original)
+++ trunk/gdk/gdktypes.h	Wed May 28 14:01:57 2008
@@ -21,9 +21,13 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_TYPES_H__
 #define __GDK_TYPES_H__
 

Modified: trunk/gdk/gdkvisual.h
==============================================================================
--- trunk/gdk/gdkvisual.h	(original)
+++ trunk/gdk/gdkvisual.h	Wed May 28 14:01:57 2008
@@ -21,9 +21,13 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_VISUAL_H__
 #define __GDK_VISUAL_H__
 

Modified: trunk/gdk/gdkwindow.h
==============================================================================
--- trunk/gdk/gdkwindow.h	(original)
+++ trunk/gdk/gdkwindow.h	Wed May 28 14:01:57 2008
@@ -21,9 +21,13 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
+#error "Only <gdk/gdk.h> can be included directly."
+#endif
+
 #ifndef __GDK_WINDOW_H__
 #define __GDK_WINDOW_H__
 

Modified: trunk/gdk/win32/gdkwin32.h
==============================================================================
--- trunk/gdk/win32/gdkwin32.h	(original)
+++ trunk/gdk/win32/gdkwin32.h	Wed May 28 14:01:57 2008
@@ -28,7 +28,6 @@
 #define __GDK_WIN32_H__
 
 #include <gdk/gdkprivate.h>
-#include <gdk/gdkcursor.h>
 
 #ifndef STRICT
 #define STRICT			/* We want strict type checks */

Modified: trunk/gdk/x11/gdkx.h
==============================================================================
--- trunk/gdk/x11/gdkx.h	(original)
+++ trunk/gdk/x11/gdkx.h	Wed May 28 14:01:57 2008
@@ -28,7 +28,6 @@
 #define __GDK_X_H__
 
 #include <gdk/gdkprivate.h>
-#include <gdk/gdkcursor.h>
 
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>



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