summaryrefslogtreecommitdiff
path: root/pango/pangoft2.h
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2020-11-05 11:01:23 +0000
committerSimon McVittie <smcv@debian.org>2020-11-05 11:01:23 +0000
commitd770d498bff51ae0320fc0447cfcb1de53ea0a29 (patch)
tree58d938bed152943cce50dc8cf4697dc573fd6ede /pango/pangoft2.h
parentc7e6f369079f60311cf241e8e05f4cd92f7c344b (diff)
downloadpango-d770d498bff51ae0320fc0447cfcb1de53ea0a29.tar.gz
ft2, xft: Write out the full type of the SubstituteFuncwip/issue510
If the SubstituteFunc used for the now-deprecated set_default_substitute functions is an alias for PangoFcSubstituteFunc, GObject-Introspection doesn't realise it's a function pointer, and doesn't flag the user data and destroy-notify arguments as such. This results in bindings like PyGI thinking that they are entirely separate arguments, which is an introspection API break (and probably not something that can practically be called any more). Signed-off-by: Simon McVittie <smcv@debian.org> Resolves: https://gitlab.gnome.org/GNOME/pango/-/issues/510
Diffstat (limited to 'pango/pangoft2.h')
-rw-r--r--pango/pangoft2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/pangoft2.h b/pango/pangoft2.h
index 892aa039..96228316 100644
--- a/pango/pangoft2.h
+++ b/pango/pangoft2.h
@@ -67,7 +67,8 @@ typedef struct _PangoFT2FontMap PangoFT2FontMap;
*
* Function type for doing final config tweaking on prepared FcPatterns.
*/
-typedef PangoFcSubstituteFunc PangoFT2SubstituteFunc;
+typedef void (*PangoFT2SubstituteFunc) (FcPattern *pattern,
+ gpointer data);
/* Calls for applications */