[goffice] Introspection fixes
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Introspection fixes
- Date: Sun, 15 Apr 2018 01:51:38 +0000 (UTC)
commit 7cad185ba751fab47f1eb2d4c8ae94e6d532d07d
Author: Morten Welinder <terra gnome org>
Date: Sat Apr 14 21:47:34 2018 -0400
Introspection fixes
Introduce an identifier filter so we handle the Goc prefix better.
We ought to do something for Gog too, but the many View classes
are a problem.
goffice/Makefile.am | 1 +
tools/introspection-identifier-filter | 10 ++++++++++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/goffice/Makefile.am b/goffice/Makefile.am
index bb69491..20009e9 100644
--- a/goffice/Makefile.am
+++ b/goffice/Makefile.am
@@ -6,6 +6,7 @@ INTROSPECTION_SCANNER_ARGS = \
--add-include-path="${INTROSPECTION_GIRDIR}" \
-v --warn-all --accept-unprefixed -DGOFFICE_DISABLE_DEPRECATED \
--namespace GOffice --nsversion="@GOFFICE_API_VER@" \
+ --identifier-filter-cmd="$(top_srcdir)/tools/introspection-identifier-filter" \
--identifier-prefix="GO" --identifier-prefix="Go" \
--symbol-prefix="go" --symbol-prefix="libgoffice"
diff --git a/tools/introspection-identifier-filter b/tools/introspection-identifier-filter
new file mode 100755
index 0000000..64ce02c
--- /dev/null
+++ b/tools/introspection-identifier-filter
@@ -0,0 +1,10 @@
+#!/usr/bin/perl -w
+
+while (<STDIN>) {
+ # s/^GogGraph/GoGraph/; # GogView will clash with GogGraphView
+ s/^Gog/GoGraph/;
+
+ s/^GocCanvas/GoCanvas/;
+ s/^Goc/GoCanvas/;
+ print;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]