[gtk+] Block direct #including in style headers
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Block direct #including in style headers
- Date: Sat, 4 Dec 2010 15:27:48 +0000 (UTC)
commit 47add6c7c3b7055632359f17f1fc7f3fe10f4e3b
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Dec 2 23:45:14 2010 +0100
Block direct #including in style headers
gtk/gtkgradient.h | 4 ++++
gtk/gtkstylecontext.h | 4 ++++
gtk/gtkstyleproperties.h | 4 ++++
gtk/gtkstyleprovider.h | 6 +++++-
gtk/gtksymboliccolor.h | 4 ++++
gtk/gtkthemingengine.h | 4 ++++
gtk/gtkwidgetpath.h | 4 ++++
7 files changed, 29 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkgradient.h b/gtk/gtkgradient.h
index 3e6b70f..f097c40 100644
--- a/gtk/gtkgradient.h
+++ b/gtk/gtkgradient.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_GRADIENT_H__
#define __GTK_GRADIENT_H__
diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h
index be20bf9..132a90b 100644
--- a/gtk/gtkstylecontext.h
+++ b/gtk/gtkstylecontext.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_STYLE_CONTEXT_H__
#define __GTK_STYLE_CONTEXT_H__
diff --git a/gtk/gtkstyleproperties.h b/gtk/gtkstyleproperties.h
index 4ff783a..113fe44 100644
--- a/gtk/gtkstyleproperties.h
+++ b/gtk/gtkstyleproperties.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_STYLE_PROPERTIES_H__
#define __GTK_STYLE_PROPERTIES_H__
diff --git a/gtk/gtkstyleprovider.h b/gtk/gtkstyleprovider.h
index 731c346..d996bb7 100644
--- a/gtk/gtkstyleprovider.h
+++ b/gtk/gtkstyleprovider.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_STYLE_PROVIDER_H__
#define __GTK_STYLE_PROVIDER_H__
@@ -72,7 +76,7 @@ G_BEGIN_DECLS
* GTK_STYLE_PROVIDER_PRIORITY_USER:
*
* The priority used for the style information from
- * <filename><replaceable>XDG_CONFIG_HOME</replaceable>/gtk-3.0/gtk.css</filename>
+ * <filename>~/.gtk-3.0.css</filename>.
*
* You should not use priorities higher than this, to
* give the user the last word.
diff --git a/gtk/gtksymboliccolor.h b/gtk/gtksymboliccolor.h
index 462f086..4f4b813 100644
--- a/gtk/gtksymboliccolor.h
+++ b/gtk/gtksymboliccolor.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_SYMBOLIC_COLOR_H__
#define __GTK_SYMBOLIC_COLOR_H__
diff --git a/gtk/gtkthemingengine.h b/gtk/gtkthemingengine.h
index 71cd635..128070e 100644
--- a/gtk/gtkthemingengine.h
+++ b/gtk/gtkthemingengine.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_THEMING_ENGINE_H__
#define __GTK_THEMING_ENGINE_H__
diff --git a/gtk/gtkwidgetpath.h b/gtk/gtkwidgetpath.h
index f6a7d72..801906c 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__
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]