summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-06-23 13:11:20 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-07-04 11:17:21 -0400
commite9ab37a70d7c1a08c1664f5b16102a1936ebb06a (patch)
tree4d98a93203038f0fabf16245cbde77ba20b5e146
parent310f8269686b36a4bcc95560246a39e0ecfe4be5 (diff)
downloadpango-e9ab37a70d7c1a08c1664f5b16102a1936ebb06a.tar.gz
Avoid gio in Pango headers
We had a leftover include in pango-font-family.h. It is not needed, so drop it and instead include gio where we use its api.
-rw-r--r--pango/pango-context.c2
-rw-r--r--pango/pango-font-family.c2
-rw-r--r--pango/pango-font-family.h1
-rw-r--r--tests/test-common.c1
-rw-r--r--tests/test-harfbuzz.c1
-rw-r--r--tests/test-itemize.c1
-rw-r--r--utils/pango-list.c1
7 files changed, 8 insertions, 1 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 2c926690..915dd032 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -23,6 +23,8 @@
#include <string.h>
#include <stdlib.h>
+#include <gio/gio.h>
+
#include "pango-context.h"
#include "pango-context-private.h"
#include "pango-impl-utils.h"
diff --git a/pango/pango-font-family.c b/pango/pango-font-family.c
index 5c0de724..0d745d9f 100644
--- a/pango/pango-font-family.c
+++ b/pango/pango-font-family.c
@@ -20,6 +20,8 @@
#include "config.h"
+#include <gio/gio.h>
+
#include "pango-font-family-private.h"
#include "pango-font-face.h"
#include "pango-font.h"
diff --git a/pango/pango-font-family.h b/pango/pango-font-family.h
index be14ebe9..2056d7a2 100644
--- a/pango/pango-font-family.h
+++ b/pango/pango-font-family.h
@@ -22,7 +22,6 @@
#include <pango/pango-types.h>
#include <glib-object.h>
-#include <gio/gio.h>
G_BEGIN_DECLS
diff --git a/tests/test-common.c b/tests/test-common.c
index 33047c7e..d3afe032 100644
--- a/tests/test-common.c
+++ b/tests/test-common.c
@@ -20,6 +20,7 @@
*/
#include <glib.h>
+#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/tests/test-harfbuzz.c b/tests/test-harfbuzz.c
index 8c9d27ed..1e6c23a1 100644
--- a/tests/test-harfbuzz.c
+++ b/tests/test-harfbuzz.c
@@ -20,6 +20,7 @@
*/
#include <pango/pango.h>
+#include <gio/gio.h>
#include "test-common.h"
/* Some basic checks that the hb_font_t returned
diff --git a/tests/test-itemize.c b/tests/test-itemize.c
index 3d04a897..3276f5fc 100644
--- a/tests/test-itemize.c
+++ b/tests/test-itemize.c
@@ -20,6 +20,7 @@
*/
#include <glib.h>
+#include <gio/gio.h>
#include <string.h>
#include <locale.h>
diff --git a/utils/pango-list.c b/utils/pango-list.c
index 31fc6d2c..b8ad1793 100644
--- a/utils/pango-list.c
+++ b/utils/pango-list.c
@@ -25,6 +25,7 @@
#include <pango/pango-hbface-private.h>
#include <hb-ot.h>
#include <glib/gstdio.h>
+#include <gio/gio.h>
#include <stdlib.h>
#include <locale.h>