[gimp] pygimp: make GimpParasite type known to the code generator
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] pygimp: make GimpParasite type known to the code generator
- Date: Sun, 1 May 2016 19:50:53 +0000 (UTC)
commit 7934e1c8f19e1063833a72b28ae2bc92a8dfddc7
Author: Kristian Rietveld <kris loopnest org>
Date: Sun May 1 09:10:12 2016 +0200
pygimp: make GimpParasite type known to the code generator
plug-ins/pygimp/Makefile.am | 4 +++-
plug-ins/pygimp/gimp-types.defs | 9 +++++++++
2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/pygimp/Makefile.am b/plug-ins/pygimp/Makefile.am
index 4b2e36f..b7092fa 100644
--- a/plug-ins/pygimp/Makefile.am
+++ b/plug-ins/pygimp/Makefile.am
@@ -132,6 +132,7 @@ pygimp_PYTHON = \
pygimp_DATA = pygimp-logo.png
codegen_files = \
+ gimp-types.defs \
gimpcolor-types.defs \
gimpenums-types.defs \
gimpthumb.defs \
@@ -164,7 +165,7 @@ EXTRA_DIST = \
$(pygimp_DATA) \
$(codegen_files)
-gimpui.c: gimpui.defs gimpui.override gimpcolor-types.defs gimpenums-types.defs
+gimpui.c: gimpui.defs gimpui.override gimp-types.defs gimpcolor-types.defs gimpenums-types.defs
gimpthumb.c: gimpthumb.defs gimpthumb.override
@@ -176,6 +177,7 @@ CLEANFILES = gimpui.c gimpthumb.c
--override $*.override \
--register $(PYGTK_DEFSDIR)/gdk-types.defs \
--register $(PYGTK_DEFSDIR)/gtk-types.defs \
+ --register gimp-types.defs \
--register gimpcolor-types.defs \
--register gimpenums-types.defs \
--prefix $* $*.defs) > gen-$*.c \
diff --git a/plug-ins/pygimp/gimp-types.defs b/plug-ins/pygimp/gimp-types.defs
new file mode 100644
index 0000000..0158ede
--- /dev/null
+++ b/plug-ins/pygimp/gimp-types.defs
@@ -0,0 +1,9 @@
+;; -*- scheme -*-
+
+;; from libgimpbase, implemented manually in pygimp-parasite.c
+
+(define-boxed GimpParasite
+ (in-module "Gimp")
+ (c-name "GimpParasite")
+ (gtype-id "GIMP_TYPE_PARASITE")
+)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]