[gimp/wip/nielsdg/fix-gir-errors] Add missing includes
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/nielsdg/fix-gir-errors] Add missing includes
- Date: Thu, 21 May 2020 13:27:56 +0000 (UTC)
commit d2198966286881bdea4d64f00737f5573f8905b6
Author: Niels De Graef <nielsdegraef gmail com>
Date: Thu May 21 15:18:29 2020 +0200
Add missing includes
We were exposing symbols in some headers, where we neglected to include
the symbol's header itself. This was okay for gcc because the header was
included _somewhere_, but not at the right place. The GIR parser tries
to resolve all symbols in a given header file by recursively looking in
all included files, so if we don't import the correct headers, the GIR
scanner will give errors.
libgimp/gimpaspectpreview.h | 2 ++
libgimp/gimpbrushselectbutton.h | 2 ++
libgimp/gimpdrawablepreview.h | 3 ++-
libgimp/gimpselectbutton.h | 2 ++
libgimpmodule/gimpmodule.h | 1 +
libgimpwidgets/gimpcolordisplay.h | 3 +++
6 files changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/libgimp/gimpaspectpreview.h b/libgimp/gimpaspectpreview.h
index e7d126aaaf..97e7797c1a 100644
--- a/libgimp/gimpaspectpreview.h
+++ b/libgimp/gimpaspectpreview.h
@@ -27,6 +27,8 @@
G_BEGIN_DECLS
+#include <gtk/gtk.h>
+#include <libgimp/gimp.h>
/* For information look into the C source or the html documentation */
diff --git a/libgimp/gimpbrushselectbutton.h b/libgimp/gimpbrushselectbutton.h
index 95be946d0d..b7c792bde6 100644
--- a/libgimp/gimpbrushselectbutton.h
+++ b/libgimp/gimpbrushselectbutton.h
@@ -25,6 +25,8 @@
#ifndef __GIMP_BRUSH_SELECT_BUTTON_H__
#define __GIMP_BRUSH_SELECT_BUTTON_H__
+#include <libgimp/gimp.h>
+
#include <libgimp/gimpselectbutton.h>
G_BEGIN_DECLS
diff --git a/libgimp/gimpdrawablepreview.h b/libgimp/gimpdrawablepreview.h
index 48aa389650..bb55a83bd8 100644
--- a/libgimp/gimpdrawablepreview.h
+++ b/libgimp/gimpdrawablepreview.h
@@ -25,8 +25,9 @@
#ifndef __GIMP_DRAWABLE_PREVIEW_H__
#define __GIMP_DRAWABLE_PREVIEW_H__
-G_BEGIN_DECLS
+#include <libgimp/gimp.h>
+G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
diff --git a/libgimp/gimpselectbutton.h b/libgimp/gimpselectbutton.h
index 6b191f697d..b7fb1d4152 100644
--- a/libgimp/gimpselectbutton.h
+++ b/libgimp/gimpselectbutton.h
@@ -25,6 +25,8 @@
#ifndef __GIMP_SELECT_BUTTON_H__
#define __GIMP_SELECT_BUTTON_H__
+#include <gtk/gtk.h>
+
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
diff --git a/libgimpmodule/gimpmodule.h b/libgimpmodule/gimpmodule.h
index 783b07dedf..d10a7a4a7c 100644
--- a/libgimpmodule/gimpmodule.h
+++ b/libgimpmodule/gimpmodule.h
@@ -22,6 +22,7 @@
#ifndef __GIMP_MODULE_H__
#define __GIMP_MODULE_H__
+#include <gio/gio.h>
#include <gmodule.h>
#define __GIMP_MODULE_H_INSIDE__
diff --git a/libgimpwidgets/gimpcolordisplay.h b/libgimpwidgets/gimpcolordisplay.h
index 03c31f2884..1afa78b9cb 100644
--- a/libgimpwidgets/gimpcolordisplay.h
+++ b/libgimpwidgets/gimpcolordisplay.h
@@ -28,6 +28,9 @@
G_BEGIN_DECLS
+#include <gegl.h>
+#include <gtk/gtk.h>
+
/* For information look at the html documentation */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]