summaryrefslogtreecommitdiff
path: root/gtk/gtkshortcutswindow.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-02-08 06:15:10 +0100
committerBenjamin Otte <otte@redhat.com>2018-02-08 06:16:01 +0100
commit7437d34eb95a4b44499a5f6464f8e81e3865ecf9 (patch)
tree126be2802ff106411ca5392b5679e21b44775dab /gtk/gtkshortcutswindow.h
parenteb3049d6b5608aa7391f1eef82e52d8959c27373 (diff)
downloadgtk+-7437d34eb95a4b44499a5f6464f8e81e3865ecf9.tar.gz
shortcuts: Don't include gtk.h
Clean up all shortcuts includes to only include the necessary files while we're at it.
Diffstat (limited to 'gtk/gtkshortcutswindow.h')
-rw-r--r--gtk/gtkshortcutswindow.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkshortcutswindow.h b/gtk/gtkshortcutswindow.h
index f3f5ba44f4..ec30006da1 100644
--- a/gtk/gtkshortcutswindow.h
+++ b/gtk/gtkshortcutswindow.h
@@ -19,6 +19,10 @@
#ifndef __GTK_SHORTCUTS_WINDOW_H__
#define __GTK_SHORTCUTS_WINDOW_H__
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
#include <gtk/gtkwindow.h>
G_BEGIN_DECLS