[gtk+/touch-selections] Don't allow individual #includes for GtkBubble/SelectionWindow



commit 080d08d62c31388197b4d04cc74209bf74f41ce0
Author: Carlos Garnacho <carlos lanedo com>
Date:   Wed Jan 16 15:38:40 2013 +0100

    Don't allow individual #includes for GtkBubble/SelectionWindow

 gtk/gtk.h                |    2 ++
 gtk/gtkbubblewindow.h    |    4 ++++
 gtk/gtkselectionwindow.h |    4 ++++
 3 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtk.h b/gtk/gtk.h
index fbc06a3..fa658b4 100644
--- a/gtk/gtk.h
+++ b/gtk/gtk.h
@@ -53,6 +53,7 @@
 #include <gtk/gtkbindings.h>
 #include <gtk/gtkborder.h>
 #include <gtk/gtkbox.h>
+#include <gtk/gtkbubblewindow.h>
 #include <gtk/gtkbuildable.h>
 #include <gtk/gtkbuilder.h>
 #include <gtk/gtkbutton.h>
@@ -168,6 +169,7 @@
 #include <gtk/gtkscrolledwindow.h>
 #include <gtk/gtksearchentry.h>
 #include <gtk/gtkselection.h>
+#include <gtk/gtkselectionwindow.h>
 #include <gtk/gtkseparator.h>
 #include <gtk/gtkseparatormenuitem.h>
 #include <gtk/gtkseparatortoolitem.h>
diff --git a/gtk/gtkbubblewindow.h b/gtk/gtkbubblewindow.h
index 5c0a9fd..7cf1fa0 100644
--- a/gtk/gtkbubblewindow.h
+++ b/gtk/gtkbubblewindow.h
@@ -18,6 +18,10 @@
 #ifndef __GTK_BUBBLE_WINDOW_H__
 #define __GTK_BUBBLE_WINDOW_H__
 
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
 #include <gtk/gtk.h>
 
 G_BEGIN_DECLS
diff --git a/gtk/gtkselectionwindow.h b/gtk/gtkselectionwindow.h
index edc35e1..bce80e1 100644
--- a/gtk/gtkselectionwindow.h
+++ b/gtk/gtkselectionwindow.h
@@ -18,6 +18,10 @@
 #ifndef __GTK_SELECTION_WINDOW_H__
 #define __GTK_SELECTION_WINDOW_H__
 
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
 #include <gtk/gtkbubblewindow.h>
 
 G_BEGIN_DECLS



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