summaryrefslogtreecommitdiff
path: root/ccss-gtk
diff options
context:
space:
mode:
authorRobert Staudinger <robertx.staudinger@intel.com>2009-04-09 16:38:11 +0200
committerRobert Staudinger <robertx.staudinger@intel.com>2009-04-09 16:38:11 +0200
commit1e5ff6df011832a6788b5efd405fa54e7c966bfd (patch)
tree0b905f0e84cfede0366927a0510b288ab9b51e3f /ccss-gtk
parent51840d64a74287c7e83d9624d8cc6d357f8db2c6 (diff)
Force per library single header inclusion.
Diffstat (limited to 'ccss-gtk')
-rw-r--r--ccss-gtk/Makefile.am3
-rw-r--r--ccss-gtk/ccss-gtk-grammar.h6
-rw-r--r--ccss-gtk/ccss-gtk-property.h12
-rw-r--r--ccss-gtk/ccss-gtk-stylesheet.h6
-rw-r--r--ccss-gtk/ccss-gtk.h10
5 files changed, 24 insertions, 13 deletions
diff --git a/ccss-gtk/Makefile.am b/ccss-gtk/Makefile.am
index 36f8465..fc83a7a 100644
--- a/ccss-gtk/Makefile.am
+++ b/ccss-gtk/Makefile.am
@@ -5,6 +5,9 @@ AM_CPPFLAGS = \
-I$(top_builddir) \
-I$(top_srcdir) \
$(CCSS_GTK_CFLAGS) \
+ -DCCSS_BUILD \
+ -DCCSS_CAIRO_BUILD \
+ -DCCSS_GTK_BUILD \
$(NULL)
lib_LTLIBRARIES = libccss-gtk-1.la
diff --git a/ccss-gtk/ccss-gtk-grammar.h b/ccss-gtk/ccss-gtk-grammar.h
index 6142e81..b34de44 100644
--- a/ccss-gtk/ccss-gtk-grammar.h
+++ b/ccss-gtk/ccss-gtk-grammar.h
@@ -22,6 +22,12 @@
#ifndef CCSS_GTK_GRAMMAR_H
#define CCSS_GTK_GRAMMAR_H
+#ifndef CCSS_GTK_H
+ #ifndef CCSS_GTK_BUILD
+ #error "Only <ccss-gtk/ccss-gtk.h> can be included directly."
+ #endif
+#endif
+
#include <ccss/ccss.h>
CCSS_BEGIN_DECLS
diff --git a/ccss-gtk/ccss-gtk-property.h b/ccss-gtk/ccss-gtk-property.h
index 664d7df..c2c201c 100644
--- a/ccss-gtk/ccss-gtk-property.h
+++ b/ccss-gtk/ccss-gtk-property.h
@@ -19,12 +19,18 @@
* MA 02110-1301, USA.
*/
-#include <ccss-cairo/ccss-cairo.h>
-#include <gtk/gtk.h>
-
#ifndef CCSS_GTK_PROPERTY_H
#define CCSS_GTK_PROPERTY_H
+#ifndef CCSS_GTK_H
+ #ifndef CCSS_GTK_BUILD
+ #error "Only <ccss-gtk/ccss-gtk.h> can be included directly."
+ #endif
+#endif
+
+#include <ccss-cairo/ccss-cairo.h>
+#include <gtk/gtk.h>
+
typedef struct {
ccss_property_base_t base;
char *class_name;
diff --git a/ccss-gtk/ccss-gtk-stylesheet.h b/ccss-gtk/ccss-gtk-stylesheet.h
index 8321bee..de40181 100644
--- a/ccss-gtk/ccss-gtk-stylesheet.h
+++ b/ccss-gtk/ccss-gtk-stylesheet.h
@@ -22,6 +22,12 @@
#ifndef CCSS_GTK_STYLESHEET_H
#define CCSS_GTK_STYLESHEET_H
+#ifndef CCSS_GTK_H
+ #ifndef CCSS_GTK_BUILD
+ #error "Only <ccss-gtk/ccss-gtk.h> can be included directly."
+ #endif
+#endif
+
#include <ccss-cairo/ccss-cairo.h>
CCSS_BEGIN_DECLS
diff --git a/ccss-gtk/ccss-gtk.h b/ccss-gtk/ccss-gtk.h
index 79cc45a..0ec040e 100644
--- a/ccss-gtk/ccss-gtk.h
+++ b/ccss-gtk/ccss-gtk.h
@@ -26,15 +26,5 @@
#include <ccss-gtk/ccss-gtk-grammar.h>
#include <ccss-gtk/ccss-gtk-stylesheet.h>
-CCSS_BEGIN_DECLS
-
-void
-ccss_gtk_init (void);
-
-void
-ccss_gtk_shutdown (void);
-
-CCSS_END_DECLS
-
#endif /* CCSS_GTK_H */