[gimp/wip/nielsdg/fix-gir-errors] Fix missing includes
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/nielsdg/fix-gir-errors] Fix missing includes
- Date: Thu, 21 May 2020 14:05:15 +0000 (UTC)
commit 25e535b5e0d6ad988827589d77fd4ac54f206db9
Author: Niels De Graef <nielsdegraef gmail com>
Date: Thu May 21 16:02:55 2020 +0200
Fix missing includes
We're exposing symbols in our header files like `GType`, `GFile` and
others, without actually including the proper headers. This also gives
errors in the GIR scanner (who can't resolve those symbols).
libgimp/gimp.h | 1 +
libgimp/gimpui.h | 2 ++
libgimpmodule/gimpmodule.h | 1 +
3 files changed, 4 insertions(+)
---
diff --git a/libgimp/gimp.h b/libgimp/gimp.h
index 1167a3e085..0578715da1 100644
--- a/libgimp/gimp.h
+++ b/libgimp/gimp.h
@@ -22,6 +22,7 @@
#define __GIMP_H__
#include <cairo.h>
+#include <glib-object.h>
#include <gegl.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
diff --git a/libgimp/gimpui.h b/libgimp/gimpui.h
index 08e591b1b8..2d3db085e4 100644
--- a/libgimp/gimpui.h
+++ b/libgimp/gimpui.h
@@ -19,7 +19,9 @@
#ifndef __GIMP_UI_H__
#define __GIMP_UI_H__
+#include <gio/gio.h>
#include <gtk/gtk.h>
+#include <libgimp/gimp.h>
#include <libgimpwidgets/gimpwidgets.h>
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__
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]