[Xfce4-commits] [apps/xfdashboard] 01/01: Change usage and inclusion of libxfdashboard.

noreply at xfce.org noreply at xfce.org
Thu Feb 25 08:48:30 CET 2016


This is an automated email from the git hooks/post-receive script.

nomad pushed a commit to branch master
in repository apps/xfdashboard.

commit 91daf36fc8ddcda6e5a57aaad000378c95aa1aeb
Author: Stephan Haller <nomad at froevel.de>
Date:   Thu Feb 25 08:45:53 2016 +0100

    Change usage and inclusion of libxfdashboard.
    
    Like many other libraries we only allow to include the new created file libxfdashboard.h with "#include <libxfdashboard/libxfdashboard.h>" when not within the library itself or the main and settings applications. Plugins must now include <libxfdashboard/libxfdashboard.h> instead of each used header file directly.
---
 libxfdashboard/Makefile.am                         |  4 +-
 libxfdashboard/action-button.h                     |  4 +
 libxfdashboard/actor.h                             |  4 +
 libxfdashboard/application-button.h                |  4 +
 libxfdashboard/application-database.h              |  4 +
 libxfdashboard/application-tracker.h               |  4 +
 libxfdashboard/application.h                       |  4 +
 libxfdashboard/applications-menu-model.h           |  4 +
 libxfdashboard/applications-search-provider.h      |  4 +
 libxfdashboard/applications-view.h                 |  4 +
 libxfdashboard/background.h                        |  4 +
 libxfdashboard/binding.h                           |  4 +
 libxfdashboard/bindings-pool.h                     |  4 +
 libxfdashboard/box-layout.h                        |  4 +
 libxfdashboard/button.h                            |  4 +
 libxfdashboard/click-action.h                      |  4 +
 libxfdashboard/collapse-box.h                      |  4 +
 libxfdashboard/css-selector.h                      |  4 +
 libxfdashboard/desktop-app-info.h                  |  4 +
 libxfdashboard/drag-action.h                       |  4 +
 libxfdashboard/drop-action.h                       |  4 +
 libxfdashboard/dynamic-table-layout.h              |  4 +
 libxfdashboard/emblem-effect.h                     |  4 +
 libxfdashboard/fill-box-layout.h                   |  4 +
 libxfdashboard/focus-manager.h                     |  4 +
 libxfdashboard/focusable.h                         |  4 +
 libxfdashboard/image-content.h                     |  4 +
 libxfdashboard/libxfdashboard.h                    | 95 ++++++++++++++++++++++
 libxfdashboard/live-window.h                       |  4 +
 libxfdashboard/live-workspace.h                    |  4 +
 libxfdashboard/outline-effect.h                    |  4 +
 libxfdashboard/plugin.h                            |  4 +
 libxfdashboard/plugins-manager.h                   |  4 +
 libxfdashboard/quicklaunch.h                       |  4 +
 libxfdashboard/scaled-table-layout.h               |  4 +
 libxfdashboard/scrollbar.h                         |  4 +
 libxfdashboard/search-manager.h                    |  4 +
 libxfdashboard/search-provider.h                   |  4 +
 libxfdashboard/search-result-container.h           |  4 +
 libxfdashboard/search-result-set.h                 |  4 +
 libxfdashboard/search-view.h                       |  4 +
 libxfdashboard/stage-interface.h                   |  4 +
 libxfdashboard/stage.h                             |  4 +
 libxfdashboard/stylable.h                          |  4 +
 libxfdashboard/text-box.h                          |  4 +
 libxfdashboard/theme-css.h                         |  4 +
 libxfdashboard/theme-effects.h                     |  4 +
 libxfdashboard/theme-layout.h                      |  4 +
 libxfdashboard/theme.h                             |  4 +
 libxfdashboard/toggle-button.h                     |  4 +
 libxfdashboard/tooltip-action.h                    |  4 +
 libxfdashboard/types.h                             |  4 +
 libxfdashboard/utils.h                             |  4 +
 libxfdashboard/view-manager.h                      |  4 +
 libxfdashboard/view-selector.h                     |  4 +
 libxfdashboard/view.h                              |  4 +
 libxfdashboard/viewpad.h                           |  4 +
 libxfdashboard/window-content.h                    |  4 +
 libxfdashboard/window-tracker-monitor.h            |  4 +
 libxfdashboard/window-tracker-window.h             |  4 +
 libxfdashboard/window-tracker-workspace.h          |  4 +
 libxfdashboard/window-tracker.h                    |  4 +
 libxfdashboard/windows-view.h                      |  4 +
 libxfdashboard/workspace-selector.h                |  4 +
 plugins/clock-view/Makefile.am                     |  2 +
 plugins/clock-view/clock-view-settings.c           |  6 +-
 plugins/clock-view/clock-view-settings.h           |  2 +-
 plugins/clock-view/clock-view.c                    |  6 +-
 plugins/clock-view/clock-view.h                    |  3 +-
 plugins/clock-view/plugin.c                        |  4 -
 plugins/gnome-shell-search-provider/Makefile.am    |  2 +
 .../gnome-shell-search-provider.c                  |  3 -
 .../gnome-shell-search-provider.h                  |  3 +-
 plugins/gnome-shell-search-provider/plugin.c       |  6 +-
 plugins/hot-corner/Makefile.am                     |  2 +
 plugins/hot-corner/hot-corner.c                    |  4 +-
 plugins/hot-corner/hot-corner.h                    |  2 +-
 plugins/hot-corner/plugin.c                        |  4 +-
 settings/Makefile.am                               |  3 +-
 settings/plugins.c                                 |  3 +-
 xfdashboard/Makefile.am                            |  1 +
 81 files changed, 367 insertions(+), 36 deletions(-)

diff --git a/libxfdashboard/Makefile.am b/libxfdashboard/Makefile.am
index 353629b..d301233 100644
--- a/libxfdashboard/Makefile.am
+++ b/libxfdashboard/Makefile.am
@@ -1,5 +1,6 @@
 AM_CPPFLAGS = \
 	-I$(top_srcdir) \
+	-DLIBXFDASHBOARD_COMPILATION=1 \
 	-DG_LOG_DOMAIN=\"xfdashboard\" \
 	-DPACKAGE_DATADIR=\"$(datadir)\" \
 	-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
@@ -211,7 +212,8 @@ libxfdashboard_la_includedir = \
 	$(includedir)/xfdashboard/libxfdashboard
 
 libxfdashboard_la_include_HEADERS = \
-	$(libxfdashboard_la_headers)
+	$(libxfdashboard_la_headers) \
+	libxfdashboard.h
 
 if MAINTAINER_MODE
 
diff --git a/libxfdashboard/action-button.h b/libxfdashboard/action-button.h
index 35986fa..60db269 100644
--- a/libxfdashboard/action-button.h
+++ b/libxfdashboard/action-button.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_ACTION_BUTTON__
 #define __LIBXFDASHBOARD_ACTION_BUTTON__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <libxfdashboard/button.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/actor.h b/libxfdashboard/actor.h
index 50bb39b..6dbadc7 100644
--- a/libxfdashboard/actor.h
+++ b/libxfdashboard/actor.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_ACTOR__
 #define __LIBXFDASHBOARD_ACTOR__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/application-button.h b/libxfdashboard/application-button.h
index 2b62dcf..3d4aefe 100644
--- a/libxfdashboard/application-button.h
+++ b/libxfdashboard/application-button.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_APPLICATION_BUTTON__
 #define __LIBXFDASHBOARD_APPLICATION_BUTTON__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <garcon/garcon.h>
 
 #include <libxfdashboard/button.h>
diff --git a/libxfdashboard/application-database.h b/libxfdashboard/application-database.h
index 6d37ce7..849a088 100644
--- a/libxfdashboard/application-database.h
+++ b/libxfdashboard/application-database.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_APPLICATION_DATABASE__
 #define __LIBXFDASHBOARD_APPLICATION_DATABASE__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <garcon/garcon.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/application-tracker.h b/libxfdashboard/application-tracker.h
index c2ace07..b441ef4 100644
--- a/libxfdashboard/application-tracker.h
+++ b/libxfdashboard/application-tracker.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_APPLICATION_TRACKER__
 #define __LIBXFDASHBOARD_APPLICATION_TRACKER__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 #include <gio/gio.h>
 
diff --git a/libxfdashboard/application.h b/libxfdashboard/application.h
index 50dc463..cc09e97 100644
--- a/libxfdashboard/application.h
+++ b/libxfdashboard/application.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_APPLICATION__
 #define __LIBXFDASHBOARD_APPLICATION__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <gio/gio.h>
 #include <xfconf/xfconf.h>
 
diff --git a/libxfdashboard/applications-menu-model.h b/libxfdashboard/applications-menu-model.h
index dfd532b..b517cc6 100644
--- a/libxfdashboard/applications-menu-model.h
+++ b/libxfdashboard/applications-menu-model.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_APPLICATIONS_MENU_MODEL__
 #define __LIBXFDASHBOARD_APPLICATIONS_MENU_MODEL__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 #include <garcon/garcon.h>
 
diff --git a/libxfdashboard/applications-search-provider.h b/libxfdashboard/applications-search-provider.h
index be14f43..3be3982 100644
--- a/libxfdashboard/applications-search-provider.h
+++ b/libxfdashboard/applications-search-provider.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_APPLICATIONS_SEARCH_PROVIDER__
 #define __LIBXFDASHBOARD_APPLICATIONS_SEARCH_PROVIDER__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <libxfdashboard/search-provider.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/applications-view.h b/libxfdashboard/applications-view.h
index 9ea6025..d810066 100644
--- a/libxfdashboard/applications-view.h
+++ b/libxfdashboard/applications-view.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_APPLICATIONS_VIEW__
 #define __LIBXFDASHBOARD_APPLICATIONS_VIEW__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <libxfdashboard/view.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/background.h b/libxfdashboard/background.h
index 59b9378..84f2441 100644
--- a/libxfdashboard/background.h
+++ b/libxfdashboard/background.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_BACKGROUND__
 #define __LIBXFDASHBOARD_BACKGROUND__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/actor.h>
diff --git a/libxfdashboard/binding.h b/libxfdashboard/binding.h
index 022b478..247363c 100644
--- a/libxfdashboard/binding.h
+++ b/libxfdashboard/binding.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_BINDING__
 #define __LIBXFDASHBOARD_BINDING__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/bindings-pool.h b/libxfdashboard/bindings-pool.h
index 758ad51..405626b 100644
--- a/libxfdashboard/bindings-pool.h
+++ b/libxfdashboard/bindings-pool.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_BINDINGS_POOL__
 #define __LIBXFDASHBOARD_BINDINGS_POOL__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/binding.h>
diff --git a/libxfdashboard/box-layout.h b/libxfdashboard/box-layout.h
index 991bc78..66cfca2 100644
--- a/libxfdashboard/box-layout.h
+++ b/libxfdashboard/box-layout.h
@@ -26,6 +26,10 @@
 #ifndef __LIBXFDASHBOARD_BOX_LAYOUT__
 #define __LIBXFDASHBOARD_BOX_LAYOUT__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/button.h b/libxfdashboard/button.h
index 82f1242..fbae72f 100644
--- a/libxfdashboard/button.h
+++ b/libxfdashboard/button.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_BUTTON__
 #define __LIBXFDASHBOARD_BUTTON__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/background.h>
diff --git a/libxfdashboard/click-action.h b/libxfdashboard/click-action.h
index 45066f1..88f85de 100644
--- a/libxfdashboard/click-action.h
+++ b/libxfdashboard/click-action.h
@@ -34,6 +34,10 @@
 #ifndef __LIBXFDASHBOARD_CLICK_ACTION__
 #define __LIBXFDASHBOARD_CLICK_ACTION__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/collapse-box.h b/libxfdashboard/collapse-box.h
index 6a4c9d6..b506cb9 100644
--- a/libxfdashboard/collapse-box.h
+++ b/libxfdashboard/collapse-box.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_COLLAPSE_BOX__
 #define __LIBXFDASHBOARD_COLLAPSE_BOX__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/actor.h>
diff --git a/libxfdashboard/css-selector.h b/libxfdashboard/css-selector.h
index 4053d5d..4625feb 100644
--- a/libxfdashboard/css-selector.h
+++ b/libxfdashboard/css-selector.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_CSS_SELECTOR__
 #define __LIBXFDASHBOARD_CSS_SELECTOR__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 #include <glib.h>
 
diff --git a/libxfdashboard/desktop-app-info.h b/libxfdashboard/desktop-app-info.h
index e6c0f38..84f8499 100644
--- a/libxfdashboard/desktop-app-info.h
+++ b/libxfdashboard/desktop-app-info.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_DESKTOP_APP_INFO__
 #define __LIBXFDASHBOARD_DESKTOP_APP_INFO__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <garcon/garcon.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/drag-action.h b/libxfdashboard/drag-action.h
index 29c9f60..f0a7786 100644
--- a/libxfdashboard/drag-action.h
+++ b/libxfdashboard/drag-action.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_DRAG_ACTION__
 #define __LIBXFDASHBOARD_DRAG_ACTION__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/drop-action.h b/libxfdashboard/drop-action.h
index 9b7f70a..8816ac2 100644
--- a/libxfdashboard/drop-action.h
+++ b/libxfdashboard/drop-action.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_DROP_ACTION__
 #define __LIBXFDASHBOARD_DROP_ACTION__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/drag-action.h>
diff --git a/libxfdashboard/dynamic-table-layout.h b/libxfdashboard/dynamic-table-layout.h
index 086e2f4..160b0ee 100644
--- a/libxfdashboard/dynamic-table-layout.h
+++ b/libxfdashboard/dynamic-table-layout.h
@@ -27,6 +27,10 @@
 #ifndef __LIBXFDASHBOARD_DYNAMIC_TABLE_LAYOUT__
 #define __LIBXFDASHBOARD_DYNAMIC_TABLE_LAYOUT__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/emblem-effect.h b/libxfdashboard/emblem-effect.h
index 1943736..a44a9cd 100644
--- a/libxfdashboard/emblem-effect.h
+++ b/libxfdashboard/emblem-effect.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_EMBLEM_EFFECT__
 #define __LIBXFDASHBOARD_EMBLEM_EFFECT__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/types.h>
diff --git a/libxfdashboard/fill-box-layout.h b/libxfdashboard/fill-box-layout.h
index 85b39aa..98fbd43 100644
--- a/libxfdashboard/fill-box-layout.h
+++ b/libxfdashboard/fill-box-layout.h
@@ -26,6 +26,10 @@
 #ifndef __LIBXFDASHBOARD_FILL_BOX_LAYOUT__
 #define __LIBXFDASHBOARD_FILL_BOX_LAYOUT__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/focus-manager.h b/libxfdashboard/focus-manager.h
index 18bec72..f16e885 100644
--- a/libxfdashboard/focus-manager.h
+++ b/libxfdashboard/focus-manager.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_FOCUS_MANAGER__
 #define __LIBXFDASHBOARD_FOCUS_MANAGER__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 
 #include <libxfdashboard/focusable.h>
diff --git a/libxfdashboard/focusable.h b/libxfdashboard/focusable.h
index 045b8db..d117b59 100644
--- a/libxfdashboard/focusable.h
+++ b/libxfdashboard/focusable.h
@@ -26,6 +26,10 @@
 #ifndef __LIBXFDASHBOARD_FOCUSABLE__
 #define __LIBXFDASHBOARD_FOCUSABLE__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/types.h>
diff --git a/libxfdashboard/image-content.h b/libxfdashboard/image-content.h
index 242e0ef..731725c 100644
--- a/libxfdashboard/image-content.h
+++ b/libxfdashboard/image-content.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_IMAGE_CONTENT__
 #define __LIBXFDASHBOARD_IMAGE_CONTENT__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 #include <gdk/gdk.h>
 
diff --git a/libxfdashboard/libxfdashboard.h b/libxfdashboard/libxfdashboard.h
new file mode 100644
index 0000000..54f1e1a
--- /dev/null
+++ b/libxfdashboard/libxfdashboard.h
@@ -0,0 +1,95 @@
+/*
+ * libxfdashboard: Maybe a Gnome shell like dashboard for Xfce
+ *
+ * Copyright 2012-2016 Stephan Haller <nomad at froevel.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ *
+ */
+
+#ifndef __LIBXFDASHBOARD_H__
+#define __LIBXFDASHBOARD_H__
+
+#define __LIBXFDASHBOARD_H_INSIDE__
+
+#include <libxfdashboard/action-button.h>
+#include <libxfdashboard/actor.h>
+#include <libxfdashboard/application-button.h>
+#include <libxfdashboard/application-database.h>
+#include <libxfdashboard/application.h>
+#include <libxfdashboard/applications-menu-model.h>
+#include <libxfdashboard/applications-search-provider.h>
+#include <libxfdashboard/applications-view.h>
+#include <libxfdashboard/application-tracker.h>
+#include <libxfdashboard/background.h>
+#include <libxfdashboard/binding.h>
+#include <libxfdashboard/bindings-pool.h>
+#include <libxfdashboard/box-layout.h>
+#include <libxfdashboard/button.h>
+#include <libxfdashboard/click-action.h>
+#include <libxfdashboard/collapse-box.h>
+#include <libxfdashboard/css-selector.h>
+#include <libxfdashboard/desktop-app-info.h>
+#include <libxfdashboard/drag-action.h>
+#include <libxfdashboard/drop-action.h>
+#include <libxfdashboard/dynamic-table-layout.h>
+#include <libxfdashboard/emblem-effect.h>
+#include <libxfdashboard/fill-box-layout.h>
+#include <libxfdashboard/focusable.h>
+#include <libxfdashboard/focus-manager.h>
+#include <libxfdashboard/image-content.h>
+#include <libxfdashboard/libxfdashboard.h>
+#include <libxfdashboard/live-window.h>
+#include <libxfdashboard/live-workspace.h>
+#include <libxfdashboard/outline-effect.h>
+#include <libxfdashboard/plugin.h>
+#include <libxfdashboard/plugins-manager.h>
+#include <libxfdashboard/quicklaunch.h>
+#include <libxfdashboard/scaled-table-layout.h>
+#include <libxfdashboard/scrollbar.h>
+#include <libxfdashboard/search-manager.h>
+#include <libxfdashboard/search-provider.h>
+#include <libxfdashboard/search-result-container.h>
+#include <libxfdashboard/search-result-set.h>
+#include <libxfdashboard/search-view.h>
+#include <libxfdashboard/stage.h>
+#include <libxfdashboard/stage-interface.h>
+#include <libxfdashboard/stylable.h>
+#include <libxfdashboard/text-box.h>
+#include <libxfdashboard/theme-css.h>
+#include <libxfdashboard/theme-effects.h>
+#include <libxfdashboard/theme.h>
+#include <libxfdashboard/theme-layout.h>
+#include <libxfdashboard/toggle-button.h>
+#include <libxfdashboard/tooltip-action.h>
+#include <libxfdashboard/types.h>
+#include <libxfdashboard/utils.h>
+#include <libxfdashboard/view.h>
+#include <libxfdashboard/view-manager.h>
+#include <libxfdashboard/viewpad.h>
+#include <libxfdashboard/view-selector.h>
+#include <libxfdashboard/window-content.h>
+#include <libxfdashboard/windows-view.h>
+#include <libxfdashboard/window-tracker.h>
+#include <libxfdashboard/window-tracker-monitor.h>
+#include <libxfdashboard/window-tracker-window.h>
+#include <libxfdashboard/window-tracker-workspace.h>
+#include <libxfdashboard/workspace-selector.h>
+
+#undef __LIBXFDASHBOARD_H_INSIDE__
+
+#endif
diff --git a/libxfdashboard/live-window.h b/libxfdashboard/live-window.h
index 636aa65..34de23e 100644
--- a/libxfdashboard/live-window.h
+++ b/libxfdashboard/live-window.h
@@ -26,6 +26,10 @@
 #ifndef __LIBXFDASHBOARD_LIVE_WINDOW__
 #define __LIBXFDASHBOARD_LIVE_WINDOW__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/background.h>
diff --git a/libxfdashboard/live-workspace.h b/libxfdashboard/live-workspace.h
index d3d209e..7f94973 100644
--- a/libxfdashboard/live-workspace.h
+++ b/libxfdashboard/live-workspace.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_LIVE_WORKSPACE__
 #define __LIBXFDASHBOARD_LIVE_WORKSPACE__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/background.h>
diff --git a/libxfdashboard/outline-effect.h b/libxfdashboard/outline-effect.h
index 2e8411a..3a2fbf5 100644
--- a/libxfdashboard/outline-effect.h
+++ b/libxfdashboard/outline-effect.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_OUTLINE_EFFECT__
 #define __LIBXFDASHBOARD_OUTLINE_EFFECT__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/types.h>
diff --git a/libxfdashboard/plugin.h b/libxfdashboard/plugin.h
index 3fd0b0d..90f4b73 100644
--- a/libxfdashboard/plugin.h
+++ b/libxfdashboard/plugin.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_PLUGIN__
 #define __LIBXFDASHBOARD_PLUGIN__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 #include <gmodule.h>
 
diff --git a/libxfdashboard/plugins-manager.h b/libxfdashboard/plugins-manager.h
index e939ef8..4fb2ee3 100644
--- a/libxfdashboard/plugins-manager.h
+++ b/libxfdashboard/plugins-manager.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_PLUGINS_MANAGER__
 #define __LIBXFDASHBOARD_PLUGINS_MANAGER__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/quicklaunch.h b/libxfdashboard/quicklaunch.h
index 51fd20d..41750b9 100644
--- a/libxfdashboard/quicklaunch.h
+++ b/libxfdashboard/quicklaunch.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_QUICKLAUNCH__
 #define __LIBXFDASHBOARD_QUICKLAUNCH__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <libxfdashboard/background.h>
 #include <libxfdashboard/toggle-button.h>
 #include <libxfdashboard/focusable.h>
diff --git a/libxfdashboard/scaled-table-layout.h b/libxfdashboard/scaled-table-layout.h
index b10a4e4..488a57f 100644
--- a/libxfdashboard/scaled-table-layout.h
+++ b/libxfdashboard/scaled-table-layout.h
@@ -28,6 +28,10 @@
 #ifndef __LIBXFDASHBOARD_SCALED_TABLE_LAYOUT__
 #define __LIBXFDASHBOARD_SCALED_TABLE_LAYOUT__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/scrollbar.h b/libxfdashboard/scrollbar.h
index b37d37c..5f03b21 100644
--- a/libxfdashboard/scrollbar.h
+++ b/libxfdashboard/scrollbar.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_SCROLLBAR__
 #define __LIBXFDASHBOARD_SCROLLBAR__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/background.h>
diff --git a/libxfdashboard/search-manager.h b/libxfdashboard/search-manager.h
index 5412a13..b2f3758 100644
--- a/libxfdashboard/search-manager.h
+++ b/libxfdashboard/search-manager.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_SEARCH_MANAGER__
 #define __LIBXFDASHBOARD_SEARCH_MANAGER__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 
 #include <libxfdashboard/search-provider.h>
diff --git a/libxfdashboard/search-provider.h b/libxfdashboard/search-provider.h
index 5c8b7b5..af7fefc 100644
--- a/libxfdashboard/search-provider.h
+++ b/libxfdashboard/search-provider.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_SEARCH_PROVIDER__
 #define __LIBXFDASHBOARD_SEARCH_PROVIDER__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/search-result-set.h>
diff --git a/libxfdashboard/search-result-container.h b/libxfdashboard/search-result-container.h
index 3bdbf1e..53ee460 100644
--- a/libxfdashboard/search-result-container.h
+++ b/libxfdashboard/search-result-container.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_SEARCH_RESULT_CONTAINER__
 #define __LIBXFDASHBOARD_SEARCH_RESULT_CONTAINER__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/actor.h>
diff --git a/libxfdashboard/search-result-set.h b/libxfdashboard/search-result-set.h
index 0c59777..504e143 100644
--- a/libxfdashboard/search-result-set.h
+++ b/libxfdashboard/search-result-set.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_SEARCH_RESULT_SET__
 #define __LIBXFDASHBOARD_SEARCH_RESULT_SET__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/search-view.h b/libxfdashboard/search-view.h
index c95f9e2..0525ef6 100644
--- a/libxfdashboard/search-view.h
+++ b/libxfdashboard/search-view.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_SEARCH_VIEW__
 #define __LIBXFDASHBOARD_SEARCH_VIEW__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <libxfdashboard/view.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/stage-interface.h b/libxfdashboard/stage-interface.h
index a9ecbb8..b347a89 100644
--- a/libxfdashboard/stage-interface.h
+++ b/libxfdashboard/stage-interface.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_STAGE_INTERFACE__
 #define __LIBXFDASHBOARD_STAGE_INTERFACE__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/stage.h>
diff --git a/libxfdashboard/stage.h b/libxfdashboard/stage.h
index cf975fb..a26828e 100644
--- a/libxfdashboard/stage.h
+++ b/libxfdashboard/stage.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_STAGE__
 #define __LIBXFDASHBOARD_STAGE__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/types.h>
diff --git a/libxfdashboard/stylable.h b/libxfdashboard/stylable.h
index 83e7e47..a62a66b 100644
--- a/libxfdashboard/stylable.h
+++ b/libxfdashboard/stylable.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_STYLABLE__
 #define __LIBXFDASHBOARD_STYLABLE__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/text-box.h b/libxfdashboard/text-box.h
index c41853f..00aa9df 100644
--- a/libxfdashboard/text-box.h
+++ b/libxfdashboard/text-box.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_TEXT_BOX__
 #define __LIBXFDASHBOARD_TEXT_BOX__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <libxfdashboard/background.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/theme-css.h b/libxfdashboard/theme-css.h
index ae66d8d..2205461 100644
--- a/libxfdashboard/theme-css.h
+++ b/libxfdashboard/theme-css.h
@@ -26,6 +26,10 @@
 #ifndef __LIBXFDASHBOARD_THEME_CSS__
 #define __LIBXFDASHBOARD_THEME_CSS__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 
 #include <libxfdashboard/stylable.h>
diff --git a/libxfdashboard/theme-effects.h b/libxfdashboard/theme-effects.h
index 4941c03..08aeb2a 100644
--- a/libxfdashboard/theme-effects.h
+++ b/libxfdashboard/theme-effects.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_THEME_EFFECTS__
 #define __LIBXFDASHBOARD_THEME_EFFECTS__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/theme-layout.h b/libxfdashboard/theme-layout.h
index 32368ec..e3cd552 100644
--- a/libxfdashboard/theme-layout.h
+++ b/libxfdashboard/theme-layout.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_THEME_LAYOUT__
 #define __LIBXFDASHBOARD_THEME_LAYOUT__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/theme.h b/libxfdashboard/theme.h
index 7bc8c6f..addbec5 100644
--- a/libxfdashboard/theme.h
+++ b/libxfdashboard/theme.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_THEME__
 #define __LIBXFDASHBOARD_THEME__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/theme-css.h>
diff --git a/libxfdashboard/toggle-button.h b/libxfdashboard/toggle-button.h
index 8ad7be3..f6c5b00 100644
--- a/libxfdashboard/toggle-button.h
+++ b/libxfdashboard/toggle-button.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_TOGGLE_BUTTON__
 #define __LIBXFDASHBOARD_TOGGLE_BUTTON__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <libxfdashboard/button.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/tooltip-action.h b/libxfdashboard/tooltip-action.h
index dcd686f..7967d17 100644
--- a/libxfdashboard/tooltip-action.h
+++ b/libxfdashboard/tooltip-action.h
@@ -25,6 +25,10 @@
 #ifndef __LIBXFDASHBOARD_TOOLTIP_ACTION__
 #define __LIBXFDASHBOARD_TOOLTIP_ACTION__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/types.h b/libxfdashboard/types.h
index 9bf808a..5b0bc3c 100644
--- a/libxfdashboard/types.h
+++ b/libxfdashboard/types.h
@@ -33,6 +33,10 @@
 #ifndef __LIBXFDASHBOARD_TYPES__
 #define __LIBXFDASHBOARD_TYPES__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <glib.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/utils.h b/libxfdashboard/utils.h
index 75caae8..4cc3c7a 100644
--- a/libxfdashboard/utils.h
+++ b/libxfdashboard/utils.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_UTILS__
 #define __LIBXFDASHBOARD_UTILS__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 #include <gio/gio.h>
 
diff --git a/libxfdashboard/view-manager.h b/libxfdashboard/view-manager.h
index d33c6b5..2368c87 100644
--- a/libxfdashboard/view-manager.h
+++ b/libxfdashboard/view-manager.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_VIEW_MANAGER__
 #define __LIBXFDASHBOARD_VIEW_MANAGER__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/view-selector.h b/libxfdashboard/view-selector.h
index 5d5b732..ec15f3f 100644
--- a/libxfdashboard/view-selector.h
+++ b/libxfdashboard/view-selector.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_VIEW_SELECTOR__
 #define __LIBXFDASHBOARD_VIEW_SELECTOR__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/actor.h>
diff --git a/libxfdashboard/view.h b/libxfdashboard/view.h
index 92e34d0..3f131b8 100644
--- a/libxfdashboard/view.h
+++ b/libxfdashboard/view.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_VIEW__
 #define __LIBXFDASHBOARD_VIEW__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/actor.h>
diff --git a/libxfdashboard/viewpad.h b/libxfdashboard/viewpad.h
index ea8995f..53f0ebc 100644
--- a/libxfdashboard/viewpad.h
+++ b/libxfdashboard/viewpad.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_VIEWPAD__
 #define __LIBXFDASHBOARD_VIEWPAD__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/background.h>
diff --git a/libxfdashboard/window-content.h b/libxfdashboard/window-content.h
index 393fde2..b4a9c87 100644
--- a/libxfdashboard/window-content.h
+++ b/libxfdashboard/window-content.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_WINDOW_CONTENT__
 #define __LIBXFDASHBOARD_WINDOW_CONTENT__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 
 #include <libxfdashboard/window-tracker-window.h>
diff --git a/libxfdashboard/window-tracker-monitor.h b/libxfdashboard/window-tracker-monitor.h
index d483cb1..81ab9a3 100644
--- a/libxfdashboard/window-tracker-monitor.h
+++ b/libxfdashboard/window-tracker-monitor.h
@@ -27,6 +27,10 @@
 #ifndef __LIBXFDASHBOARD_WINDOW_TRACKER_MONITOR__
 #define __LIBXFDASHBOARD_WINDOW_TRACKER_MONITOR__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/window-tracker-window.h b/libxfdashboard/window-tracker-window.h
index 6442633..b4774fa 100644
--- a/libxfdashboard/window-tracker-window.h
+++ b/libxfdashboard/window-tracker-window.h
@@ -29,6 +29,10 @@
 #ifndef __LIBXFDASHBOARD_WINDOW_TRACKER_WINDOW__
 #define __LIBXFDASHBOARD_WINDOW_TRACKER_WINDOW__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <clutter/clutter.h>
 #include <glib-object.h>
 #include <gdk/gdk.h>
diff --git a/libxfdashboard/window-tracker-workspace.h b/libxfdashboard/window-tracker-workspace.h
index a84c896..97f87c2 100644
--- a/libxfdashboard/window-tracker-workspace.h
+++ b/libxfdashboard/window-tracker-workspace.h
@@ -30,6 +30,10 @@
 #ifndef __LIBXFDASHBOARD_WINDOW_TRACKER_WORKSPACE__
 #define __LIBXFDASHBOARD_WINDOW_TRACKER_WORKSPACE__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 
 G_BEGIN_DECLS
diff --git a/libxfdashboard/window-tracker.h b/libxfdashboard/window-tracker.h
index 1cabddf..aff9d40 100644
--- a/libxfdashboard/window-tracker.h
+++ b/libxfdashboard/window-tracker.h
@@ -30,6 +30,10 @@
 #ifndef __LIBXFDASHBOARD_WINDOW_TRACKER__
 #define __LIBXFDASHBOARD_WINDOW_TRACKER__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <glib-object.h>
 
 #include <libxfdashboard/window-tracker-window.h>
diff --git a/libxfdashboard/windows-view.h b/libxfdashboard/windows-view.h
index 999e5be..3c5bc1a 100644
--- a/libxfdashboard/windows-view.h
+++ b/libxfdashboard/windows-view.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_WINDOWS_VIEW__
 #define __LIBXFDASHBOARD_WINDOWS_VIEW__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <libxfdashboard/view.h>
 #include <libxfdashboard/focusable.h>
 
diff --git a/libxfdashboard/workspace-selector.h b/libxfdashboard/workspace-selector.h
index f2f06ef..6324301 100644
--- a/libxfdashboard/workspace-selector.h
+++ b/libxfdashboard/workspace-selector.h
@@ -24,6 +24,10 @@
 #ifndef __LIBXFDASHBOARD_WORKSPACE_SELECTOR__
 #define __LIBXFDASHBOARD_WORKSPACE_SELECTOR__
 
+#if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION)
+#error "Only <libxfdashboard/libxfdashboard.h> can be included directly."
+#endif
+
 #include <libxfdashboard/background.h>
 
 G_BEGIN_DECLS
diff --git a/plugins/clock-view/Makefile.am b/plugins/clock-view/Makefile.am
index 9eb6c74..7a89975 100644
--- a/plugins/clock-view/Makefile.am
+++ b/plugins/clock-view/Makefile.am
@@ -24,6 +24,7 @@ clock_view_la_CFLAGS = \
 	$(GTK_CFLAGS) \
 	$(CLUTTER_CFLAGS) \
 	$(LIBXFCONF_CFLAGS) \
+	$(GARCON_CFLAGS) \
 	$(PLATFORM_CFLAGS)
 
 clock_view_la_LDFLAGS = \
@@ -40,6 +41,7 @@ clock_view_la_LIBADD = \
 	$(GTK_LIBS) \
 	$(CLUTTER_LIBS) \
 	$(LIBXFCONF_LIBS) \
+	$(GARCON_LIBS) \
 	$(top_builddir)/libxfdashboard/libxfdashboard.la
 
 CLEANFILES = \
diff --git a/plugins/clock-view/clock-view-settings.c b/plugins/clock-view/clock-view-settings.c
index 8b4da12..48be4de 100644
--- a/plugins/clock-view/clock-view-settings.c
+++ b/plugins/clock-view/clock-view-settings.c
@@ -27,15 +27,11 @@
 
 #include "clock-view-settings.h"
 
+#include <libxfdashboard/libxfdashboard.h>
 #include <glib/gi18n-lib.h>
 #include <gtk/gtk.h>
 #include <math.h>
 
-#include <libxfdashboard/utils.h>
-#include <libxfdashboard/view.h>
-#include <libxfdashboard/fill-box-layout.h>
-#include <libxfdashboard/application.h>
-
 
 /* Define this class in GObject system */
 G_DEFINE_DYNAMIC_TYPE(XfdashboardClockViewSettings,
diff --git a/plugins/clock-view/clock-view-settings.h b/plugins/clock-view/clock-view-settings.h
index 72889f4..2019bc1 100644
--- a/plugins/clock-view/clock-view-settings.h
+++ b/plugins/clock-view/clock-view-settings.h
@@ -24,7 +24,7 @@
 #ifndef __XFDASHBOARD_CLOCK_VIEW_SETTINGS__
 #define __XFDASHBOARD_CLOCK_VIEW_SETTINGS__
 
-#include <libxfdashboard/plugin.h>
+#include <libxfdashboard/libxfdashboard.h>
 #include <glib-object.h>
 #include <clutter/clutter.h>
 
diff --git a/plugins/clock-view/clock-view.c b/plugins/clock-view/clock-view.c
index 3752cc0..b3af361 100644
--- a/plugins/clock-view/clock-view.c
+++ b/plugins/clock-view/clock-view.c
@@ -27,15 +27,11 @@
 
 #include "clock-view.h"
 
+#include <libxfdashboard/libxfdashboard.h>
 #include <glib/gi18n-lib.h>
 #include <gtk/gtk.h>
 #include <math.h>
 
-#include <libxfdashboard/utils.h>
-#include <libxfdashboard/view.h>
-#include <libxfdashboard/fill-box-layout.h>
-#include <libxfdashboard/application.h>
-
 #include "clock-view-settings.h"
 
 
diff --git a/plugins/clock-view/clock-view.h b/plugins/clock-view/clock-view.h
index b74cd95..052a5a0 100644
--- a/plugins/clock-view/clock-view.h
+++ b/plugins/clock-view/clock-view.h
@@ -24,8 +24,7 @@
 #ifndef __XFDASHBOARD_CLOCK_VIEW__
 #define __XFDASHBOARD_CLOCK_VIEW__
 
-#include <libxfdashboard/plugin.h>
-#include <libxfdashboard/view.h>
+#include <libxfdashboard/libxfdashboard.h>
 
 G_BEGIN_DECLS
 
diff --git a/plugins/clock-view/plugin.c b/plugins/clock-view/plugin.c
index 6f6a003..16f12e3 100644
--- a/plugins/clock-view/plugin.c
+++ b/plugins/clock-view/plugin.c
@@ -26,10 +26,6 @@
 #endif
 
 #include <libxfce4util/libxfce4util.h>
-
-#include <libxfdashboard/plugin.h>
-#include <libxfdashboard/view-manager.h>
-
 #include <gtk/gtk.h>
 
 #include "clock-view.h"
diff --git a/plugins/gnome-shell-search-provider/Makefile.am b/plugins/gnome-shell-search-provider/Makefile.am
index 25d386d..ff61d26 100644
--- a/plugins/gnome-shell-search-provider/Makefile.am
+++ b/plugins/gnome-shell-search-provider/Makefile.am
@@ -22,6 +22,7 @@ gnome_shell_search_provider_la_CFLAGS = \
 	$(LIBXFCE4UTIL_CFLAGS) \
 	$(GTK_CFLAGS) \
 	$(CLUTTER_CFLAGS) \
+	$(LIBXFCONF_CFLAGS) \
 	$(GARCON_CFLAGS) \
 	$(PLATFORM_CFLAGS)
 
@@ -38,6 +39,7 @@ gnome_shell_search_provider_la_LIBADD = \
 	$(LIBXFCE4UTIL_LIBS) \
 	$(GTK_LIBS) \
 	$(CLUTTER_LIBS) \
+	$(LIBXFCONF_LIBS) \
 	$(GARCON_LIBS) \
 	$(top_builddir)/libxfdashboard/libxfdashboard.la
 
diff --git a/plugins/gnome-shell-search-provider/gnome-shell-search-provider.c b/plugins/gnome-shell-search-provider/gnome-shell-search-provider.c
index c7d6d48..22aeea8 100644
--- a/plugins/gnome-shell-search-provider/gnome-shell-search-provider.c
+++ b/plugins/gnome-shell-search-provider/gnome-shell-search-provider.c
@@ -31,9 +31,6 @@
 #include <glib/gi18n-lib.h>
 #include <gio/gio.h>
 
-#include "libxfdashboard/application-database.h"
-#include "libxfdashboard/button.h"
-
 
 /* Define this class in GObject system */
 G_DEFINE_DYNAMIC_TYPE(XfdashboardGnomeShellSearchProvider,
diff --git a/plugins/gnome-shell-search-provider/gnome-shell-search-provider.h b/plugins/gnome-shell-search-provider/gnome-shell-search-provider.h
index 7254d07..985ca6c 100644
--- a/plugins/gnome-shell-search-provider/gnome-shell-search-provider.h
+++ b/plugins/gnome-shell-search-provider/gnome-shell-search-provider.h
@@ -25,8 +25,7 @@
 #ifndef __XFDASHBOARD_GNOME_SHELL_SEARCH_PROVIDER__
 #define __XFDASHBOARD_GNOME_SHELL_SEARCH_PROVIDER__
 
-#include "libxfdashboard/plugin.h"
-#include "libxfdashboard/search-provider.h"
+#include <libxfdashboard/libxfdashboard.h>
 
 G_BEGIN_DECLS
 
diff --git a/plugins/gnome-shell-search-provider/plugin.c b/plugins/gnome-shell-search-provider/plugin.c
index 4062af7..3b77144 100644
--- a/plugins/gnome-shell-search-provider/plugin.c
+++ b/plugins/gnome-shell-search-provider/plugin.c
@@ -25,12 +25,10 @@
 #include <config.h>
 #endif
 
-#include "gnome-shell-search-provider.h"
-
+#include <libxfdashboard/libxfdashboard.h>
 #include <libxfce4util/libxfce4util.h>
 
-#include "libxfdashboard/search-manager.h"
-#include "libxfdashboard/plugin.h"
+#include "gnome-shell-search-provider.h"
 
 
 /* IMPLEMENTATION: Private variables and methods */
diff --git a/plugins/hot-corner/Makefile.am b/plugins/hot-corner/Makefile.am
index f4f1f0c..91782f4 100644
--- a/plugins/hot-corner/Makefile.am
+++ b/plugins/hot-corner/Makefile.am
@@ -22,6 +22,7 @@ hot_corner_la_CFLAGS = \
 	$(GTK_CFLAGS) \
 	$(CLUTTER_CFLAGS) \
 	$(LIBXFCONF_CFLAGS) \
+	$(GARCON_CFLAGS) \
 	$(PLATFORM_CFLAGS)
 
 hot_corner_la_LDFLAGS = \
@@ -38,6 +39,7 @@ hot_corner_la_LIBADD = \
 	$(GTK_LIBS) \
 	$(CLUTTER_LIBS) \
 	$(LIBXFCONF_LIBS) \
+	$(GARCON_CLIBS) \
 	$(top_builddir)/libxfdashboard/libxfdashboard.la
 
 CLEANFILES = \
diff --git a/plugins/hot-corner/hot-corner.c b/plugins/hot-corner/hot-corner.c
index 9c3d54c..895fcd6 100644
--- a/plugins/hot-corner/hot-corner.c
+++ b/plugins/hot-corner/hot-corner.c
@@ -27,13 +27,11 @@
 
 #include "hot-corner.h"
 
+#include <libxfdashboard/libxfdashboard.h>
 #include <glib/gi18n-lib.h>
 #include <gtk/gtk.h>
 #include <math.h>
 
-#include "libxfdashboard/window-tracker.h"
-#include "libxfdashboard/application.h"
-
 
 /* Define this class in GObject system */
 G_DEFINE_DYNAMIC_TYPE(XfdashboardHotCorner,
diff --git a/plugins/hot-corner/hot-corner.h b/plugins/hot-corner/hot-corner.h
index 43007b7..ca201e3 100644
--- a/plugins/hot-corner/hot-corner.h
+++ b/plugins/hot-corner/hot-corner.h
@@ -24,7 +24,7 @@
 #ifndef __XFDASHBOARD_HOT_CORNER__
 #define __XFDASHBOARD_HOT_CORNER__
 
-#include "libxfdashboard/plugin.h"
+#include <libxfdashboard/libxfdashboard.h>
 
 G_BEGIN_DECLS
 
diff --git a/plugins/hot-corner/plugin.c b/plugins/hot-corner/plugin.c
index 1d7d17d..012e5a3 100644
--- a/plugins/hot-corner/plugin.c
+++ b/plugins/hot-corner/plugin.c
@@ -25,11 +25,11 @@
 #include <config.h>
 #endif
 
-#include "hot-corner.h"
+#include <libxfdashboard/libxfdashboard.h>
 
 #include <libxfce4util/libxfce4util.h>
 
-#include "libxfdashboard/plugin.h"
+#include "hot-corner.h"
 
 
 /* IMPLEMENTATION: XfdashboardPlugin */
diff --git a/settings/Makefile.am b/settings/Makefile.am
index 5345ec3..9bd38f1 100644
--- a/settings/Makefile.am
+++ b/settings/Makefile.am
@@ -1,6 +1,7 @@
 AM_CPPFLAGS = \
 	-I$(top_srcdir) \
-	-DG_LOG_DOMAIN=\"xfdashboard\" \
+	-DLIBXFDASHBOARD_COMPILATION=1 \
+	-DG_LOG_DOMAIN=\"xfdashboard-settings\" \
 	-DPACKAGE_DATADIR=\"$(datadir)\" \
 	-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
 	-DPACKAGE_LIBDIR=\"$(libdir)\" \
diff --git a/settings/plugins.c b/settings/plugins.c
index 3830bf8..08e1806 100644
--- a/settings/plugins.c
+++ b/settings/plugins.c
@@ -27,11 +27,10 @@
 
 #include "plugins.h"
 
+#include <libxfdashboard/plugin.h>
 #include <glib/gi18n-lib.h>
 #include <xfconf/xfconf.h>
 
-#include <libxfdashboard/plugin.h>
-
 
 /* Define this class in GObject system */
 G_DEFINE_TYPE(XfdashboardSettingsPlugins,
diff --git a/xfdashboard/Makefile.am b/xfdashboard/Makefile.am
index ac57e31..572eaa2 100644
--- a/xfdashboard/Makefile.am
+++ b/xfdashboard/Makefile.am
@@ -1,5 +1,6 @@
 AM_CPPFLAGS = \
 	-I$(top_srcdir) \
+	-DLIBXFDASHBOARD_COMPILATION=1 \
 	-DG_LOG_DOMAIN=\"xfdashboard\" \
 	-DPACKAGE_DATADIR=\"$(datadir)\" \
 	-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list