summaryrefslogtreecommitdiff
path: root/gtk/gtkwidgetpath.h
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2010-12-02 23:45:14 +0100
committerCarlos Garnacho <carlosg@gnome.org>2010-12-04 15:39:55 +0100
commit47add6c7c3b7055632359f17f1fc7f3fe10f4e3b (patch)
tree03f4364818d29296afde9df00297375d8c2817e9 /gtk/gtkwidgetpath.h
parentbacb7906f238c716dac395b923e41897428a263a (diff)
downloadgtk+-47add6c7c3b7055632359f17f1fc7f3fe10f4e3b.tar.gz
Block direct #including in style headers
Diffstat (limited to 'gtk/gtkwidgetpath.h')
-rw-r--r--gtk/gtkwidgetpath.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkwidgetpath.h b/gtk/gtkwidgetpath.h
index f6a7d72b89..801906c68f 100644
--- a/gtk/gtkwidgetpath.h
+++ b/gtk/gtkwidgetpath.h
@@ -17,6 +17,10 @@
* Boston, MA 02111-1307, USA.
*/
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
#ifndef __GTK_WIDGET_PATH_H__
#define __GTK_WIDGET_PATH_H__