diff --git a/docs/reference/gio/Makefile.am b/docs/reference/gio/Makefile.am
index 2191ca5d4..a87d82482 100644
--- a/docs/reference/gio/Makefile.am
+++ b/docs/reference/gio/Makefile.am
@@ -19,6 +19,17 @@ BUILT_HFILES=gioenumtypes.h
HFILE_GLOB=$(top_srcdir)/gio/*.h
CFILE_GLOB=$(top_srcdir)/gio/*.c
+IGNORE_HFILES = \
+ fam \
+ fen \
+ gdbus-2.0 \
+ gvdb \
+ inotify \
+ libasyncns \
+ tests \
+ win32 \
+ xdgmime
+
# CFLAGS and LDFLAGS for compiling scan program. Only needed
# if $(DOC_MODULE).types is non-empty.
INCLUDES = \
diff --git a/docs/reference/gio/gio-sections.txt b/docs/reference/gio/gio-sections.txt
index 89969013b..324d66cc2 100644
--- a/docs/reference/gio/gio-sections.txt
+++ b/docs/reference/gio/gio-sections.txt
@@ -2875,7 +2875,6 @@ G_ACTION