Commit eff99c28 authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

define __GTK_H_INSIDE__ around including all other headers.

2008-05-28  Michael Natterer  <mitch@imendio.com>

	* gtk/gtk.h: define __GTK_H_INSIDE__ around including all other
	headers.

	* gtk/gtktypebuiltins.h.template
	* gtk/gtkversion.h.in
	* gtk/gtk*.h: add single-include guards that #error out if
	GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
	included individually.

	* gtk/gtkprintbackend.h
	* gtk/gtkprinter-private.h
	* gtk/gtktextlayout.h
	* gtk/gtktexttagprivate.h
	* gtk/gtktexttypes.h
	* gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual
	headers in these private or semi-private headers.

	* gtk/gtkimmodule.h: also here because it's not in gtk.h.

	* gtk/gtkpagesetupunixdialog.h
	* gtk/gtkprinter.h
	* gtk/gtkprintjob.h
	* gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers.

	* gtk/gtkclist.h
	* gtk/gtkcombo.h
	* gtk/gtkctree.h
	* gtk/gtkfilesel.h
	* gtk/gtkitemfactory.h
	* gtk/gtklist.h
	* gtk/gtklistitem.h
	* gtk/gtkoldeditable.h
	* gtk/gtkoptionmenu.h
	* gtk/gtkpixmap.h
	* gtk/gtkpreview.h
	* gtk/gtksignal.h
	* gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h>
	instead of individual headers in these deprecated headers. They
	don't get included at all when GTK_DISABLE_DEPRECATED is defined,
	so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED
	and include them individually, which should continue to work.

	* gtk/gtkclist.c: include "gtkctree.h" because of the change
	above.


svn path=/trunk/; revision=20221
parent e7df0579
2008-05-28 Michael Natterer <mitch@imendio.com>
* gtk/gtk.h: define __GTK_H_INSIDE__ around including all other
headers.
* gtk/gtktypebuiltins.h.template
* gtk/gtkversion.h.in
* gtk/gtk*.h: add single-include guards that #error out if
GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
included individually.
* gtk/gtkprintbackend.h
* gtk/gtkprinter-private.h
* gtk/gtktextlayout.h
* gtk/gtktexttagprivate.h
* gtk/gtktexttypes.h
* gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual
headers in these private or semi-private headers.
* gtk/gtkimmodule.h: also here because it's not in gtk.h.
* gtk/gtkpagesetupunixdialog.h
* gtk/gtkprinter.h
* gtk/gtkprintjob.h
* gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers.
* gtk/gtkclist.h
* gtk/gtkcombo.h
* gtk/gtkctree.h
* gtk/gtkfilesel.h
* gtk/gtkitemfactory.h
* gtk/gtklist.h
* gtk/gtklistitem.h
* gtk/gtkoldeditable.h
* gtk/gtkoptionmenu.h
* gtk/gtkpixmap.h
* gtk/gtkpreview.h
* gtk/gtksignal.h
* gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h>
instead of individual headers in these deprecated headers. They
don't get included at all when GTK_DISABLE_DEPRECATED is defined,
so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED
and include them individually, which should continue to work.
* gtk/gtkclist.c: include "gtkctree.h" because of the change
above.
2008-05-28 Kristian Rietveld <kris@imendio.com> 2008-05-28 Kristian Rietveld <kris@imendio.com>
Bug 449625 - crash in gtk_tree_view_real_move_cursor at Bug 449625 - crash in gtk_tree_view_real_move_cursor at
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#ifndef __GTK_H__ #ifndef __GTK_H__
#define __GTK_H__ #define __GTK_H__
#define __GTK_H_INSIDE__
#include <gdk/gdk.h> #include <gdk/gdk.h>
#include <gtk/gtkaboutdialog.h> #include <gtk/gtkaboutdialog.h>
...@@ -231,5 +232,6 @@ ...@@ -231,5 +232,6 @@
#include <gtk/gtktipsquery.h> #include <gtk/gtktipsquery.h>
#include <gtk/gtktooltips.h> #include <gtk/gtktooltips.h>
#undef __GTK_H_INSIDE__
#endif /* __GTK_H__ */ #endif /* __GTK_H__ */
...@@ -22,6 +22,10 @@ ...@@ -22,6 +22,10 @@
Author: Anders Carlsson <andersca@codefactory.se> Author: Anders Carlsson <andersca@codefactory.se>
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_ABOUT_DIALOG_H__ #ifndef __GTK_ABOUT_DIALOG_H__
#define __GTK_ABOUT_DIALOG_H__ #define __GTK_ABOUT_DIALOG_H__
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_ACCEL_GROUP_H__ #ifndef __GTK_ACCEL_GROUP_H__
#define __GTK_ACCEL_GROUP_H__ #define __GTK_ACCEL_GROUP_H__
......
...@@ -27,6 +27,10 @@ ...@@ -27,6 +27,10 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_ACCEL_LABEL_H__ #ifndef __GTK_ACCEL_LABEL_H__
#define __GTK_ACCEL_LABEL_H__ #define __GTK_ACCEL_LABEL_H__
......
...@@ -16,6 +16,11 @@ ...@@ -16,6 +16,11 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_ACCEL_MAP_H__ #ifndef __GTK_ACCEL_MAP_H__
#define __GTK_ACCEL_MAP_H__ #define __GTK_ACCEL_MAP_H__
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_ACCESSIBLE_H__ #ifndef __GTK_ACCESSIBLE_H__
#define __GTK_ACCESSIBLE_H__ #define __GTK_ACCESSIBLE_H__
......
...@@ -27,6 +27,11 @@ ...@@ -27,6 +27,11 @@
* files for a list of changes. These files are distributed with * 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 (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_ACTION_H__ #ifndef __GTK_ACTION_H__
#define __GTK_ACTION_H__ #define __GTK_ACTION_H__
......
...@@ -27,6 +27,11 @@ ...@@ -27,6 +27,11 @@
* files for a list of changes. These files are distributed with * 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 (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_ACTION_GROUP_H__ #ifndef __GTK_ACTION_GROUP_H__
#define __GTK_ACTION_GROUP_H__ #define __GTK_ACTION_GROUP_H__
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_ADJUSTMENT_H__ #ifndef __GTK_ADJUSTMENT_H__
#define __GTK_ADJUSTMENT_H__ #define __GTK_ADJUSTMENT_H__
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_ALIGNMENT_H__ #ifndef __GTK_ALIGNMENT_H__
#define __GTK_ALIGNMENT_H__ #define __GTK_ALIGNMENT_H__
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_ARROW_H__ #ifndef __GTK_ARROW_H__
#define __GTK_ARROW_H__ #define __GTK_ARROW_H__
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_ASPECT_FRAME_H__ #ifndef __GTK_ASPECT_FRAME_H__
#define __GTK_ASPECT_FRAME_H__ #define __GTK_ASPECT_FRAME_H__
......
...@@ -23,6 +23,10 @@ ...@@ -23,6 +23,10 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_ASSISTANT_H__ #ifndef __GTK_ASSISTANT_H__
#define __GTK_ASSISTANT_H__ #define __GTK_ASSISTANT_H__
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_BUTTON_BOX_H__ #ifndef __GTK_BUTTON_BOX_H__
#define __GTK_BUTTON_BOX_H__ #define __GTK_BUTTON_BOX_H__
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_BIN_H__ #ifndef __GTK_BIN_H__
#define __GTK_BIN_H__ #define __GTK_BIN_H__
......
...@@ -27,6 +27,10 @@ ...@@ -27,6 +27,10 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_BINDINGS_H__ #ifndef __GTK_BINDINGS_H__
#define __GTK_BINDINGS_H__ #define __GTK_BINDINGS_H__
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_BOX_H__ #ifndef __GTK_BOX_H__
#define __GTK_BOX_H__ #define __GTK_BOX_H__
......
...@@ -18,6 +18,10 @@ ...@@ -18,6 +18,10 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_BUILDABLE_H__ #ifndef __GTK_BUILDABLE_H__
#define __GTK_BUILDABLE_H__ #define __GTK_BUILDABLE_H__
......
...@@ -17,6 +17,11 @@ ...@@ -17,6 +17,11 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_BUILDER_H__ #ifndef __GTK_BUILDER_H__
#define __GTK_BUILDER_H__ #define __GTK_BUILDER_H__
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_BUTTON_H__ #ifndef __GTK_BUTTON_H__
#define __GTK_BUTTON_H__ #define __GTK_BUTTON_H__
......
...@@ -26,6 +26,10 @@ ...@@ -26,6 +26,10 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_CALENDAR_H__ #ifndef __GTK_CALENDAR_H__
#define __GTK_CALENDAR_H__ #define __GTK_CALENDAR_H__
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_CELL_EDITABLE_H__ #ifndef __GTK_CELL_EDITABLE_H__
#define __GTK_CELL_EDITABLE_H__ #define __GTK_CELL_EDITABLE_H__
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_CELL_LAYOUT_H__ #ifndef __GTK_CELL_LAYOUT_H__
#define __GTK_CELL_LAYOUT_H__ #define __GTK_CELL_LAYOUT_H__
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_CELL_RENDERER_H__ #ifndef __GTK_CELL_RENDERER_H__
#define __GTK_CELL_RENDERER_H__ #define __GTK_CELL_RENDERER_H__
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_CELL_RENDERER_ACCEL_H__ #ifndef __GTK_CELL_RENDERER_ACCEL_H__
#define __GTK_CELL_RENDERER_ACCEL_H__ #define __GTK_CELL_RENDERER_ACCEL_H__
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_CELL_RENDERER_COMBO_H__ #ifndef __GTK_CELL_RENDERER_COMBO_H__
#define __GTK_CELL_RENDERER_COMBO_H__ #define __GTK_CELL_RENDERER_COMBO_H__
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_CELL_RENDERER_PIXBUF_H__ #ifndef __GTK_CELL_RENDERER_PIXBUF_H__
#define __GTK_CELL_RENDERER_PIXBUF_H__ #define __GTK_CELL_RENDERER_PIXBUF_H__
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_CELL_RENDERER_PROGRESS_H__ #ifndef __GTK_CELL_RENDERER_PROGRESS_H__
#define __GTK_CELL_RENDERER_PROGRESS_H__ #define __GTK_CELL_RENDERER_PROGRESS_H__
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_CELL_RENDERER_SPIN_H__ #ifndef __GTK_CELL_RENDERER_SPIN_H__
#define __GTK_CELL_RENDERER_SPIN_H__ #define __GTK_CELL_RENDERER_SPIN_H__
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_CELL_RENDERER_TEXT_H__ #ifndef __GTK_CELL_RENDERER_TEXT_H__
#define __GTK_CELL_RENDERER_TEXT_H__ #define __GTK_CELL_RENDERER_TEXT_H__
...@@ -98,5 +102,4 @@ void gtk_cell_renderer_text_set_fixed_height_from_font (GtkCellRende ...@@ -98,5 +102,4 @@ void gtk_cell_renderer_text_set_fixed_height_from_font (GtkCellRende
G_END_DECLS G_END_DECLS
#endif /* __GTK_CELL_RENDERER_TEXT_H__ */ #endif /* __GTK_CELL_RENDERER_TEXT_H__ */
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_CELL_RENDERER_TOGGLE_H__ #ifndef __GTK_CELL_RENDERER_TOGGLE_H__
#define __GTK_CELL_RENDERER_TOGGLE_H__ #define __GTK_CELL_RENDERER_TOGGLE_H__
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_CELL_VIEW_H__ #ifndef __GTK_CELL_VIEW_H__
#define __GTK_CELL_VIEW_H__ #define __GTK_CELL_VIEW_H__
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_CHECK_BUTTON_H__ #ifndef __GTK_CHECK_BUTTON_H__
#define __GTK_CHECK_BUTTON_H__ #define __GTK_CHECK_BUTTON_H__
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_CHECK_MENU_ITEM_H__ #ifndef __GTK_CHECK_MENU_ITEM_H__
#define __GTK_CHECK_MENU_ITEM_H__ #define __GTK_CHECK_MENU_ITEM_H__
......
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
* Global clipboard abstraction. * Global clipboard abstraction.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_CLIPBOARD_H__ #ifndef __GTK_CLIPBOARD_H__
#define __GTK_CLIPBOARD_H__ #define __GTK_CLIPBOARD_H__
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include "gtkmain.h" #include "gtkmain.h"
#include "gtkobject.h" #include "gtkobject.h"
#include "gtkctree.h"
#include "gtkclist.h" #include "gtkclist.h"
#include "gtkbindings.h" #include "gtkbindings.h"
#include "gtkdnd.h" #include "gtkdnd.h"
......
...@@ -30,15 +30,7 @@ ...@@ -30,15 +30,7 @@
#ifndef __GTK_CLIST_H__ #ifndef __GTK_CLIST_H__
#define __GTK_CLIST_H__ #define __GTK_CLIST_H__
#include <gdk/gdk.h> #include <gtk/gtk.h>
#include <gtk/gtksignal.h>
#include <gtk/gtkalignment.h>
#include <gtk/gtklabel.h>
#include <gtk/gtkbutton.h>
#include <gtk/gtkhscrollbar.h>
#include <gtk/gtkvscrollbar.h>
#include <gtk/gtkenums.h>
G_BEGIN_DECLS G_BEGIN_DECLS
......
...@@ -28,6 +28,10 @@ ...@@ -28,6 +28,10 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif