summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2019-08-02 11:04:34 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2019-08-02 11:04:34 +0100
commit2bd9b3d7e44d9fc9985f46542824e378144bcb89 (patch)
tree402a91c40fdde02991046063c8cbac2490a03ada /pango
parent006f2e2e2a85d351eee217a74a0ad2dda35dc062 (diff)
downloadpango-2bd9b3d7e44d9fc9985f46542824e378144bcb89.tar.gz
Add PangoCoverage GType getter to the public header
The `pango_coverage_get_type()` symbol is already public, but declared in a private header. Unless we move it to a public header the introspection scanner can't know that the C type maps to a GType.
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-coverage-private.h4
-rw-r--r--pango/pango-coverage.c6
-rw-r--r--pango/pango-coverage.h5
3 files changed, 7 insertions, 8 deletions
diff --git a/pango/pango-coverage-private.h b/pango/pango-coverage-private.h
index 806a012b..af86ab00 100644
--- a/pango/pango-coverage-private.h
+++ b/pango/pango-coverage-private.h
@@ -56,10 +56,6 @@ struct _PangoCoverageClass
PangoCoverage * (* copy) (PangoCoverage *coverage);
};
-PANGO_AVAILABLE_IN_ALL
-GType pango_coverage_get_type (void) G_GNUC_CONST;
-
-
G_END_DECLS
#endif /* __PANGO_COVERAGE_PRIVATE_H__ */
diff --git a/pango/pango-coverage.c b/pango/pango-coverage.c
index e982bd3b..5358e4e7 100644
--- a/pango/pango-coverage.c
+++ b/pango/pango-coverage.c
@@ -149,11 +149,11 @@ pango_coverage_copy (PangoCoverage *coverage)
/**
* pango_coverage_ref:
- * @coverage: a #PangoCoverage
+ * @coverage: (not nullable): a #PangoCoverage
*
* Increase the reference count on the #PangoCoverage by one
*
- * Return value: @coverage
+ * Return value: (transfer full): @coverage
**/
PangoCoverage *
pango_coverage_ref (PangoCoverage *coverage)
@@ -163,7 +163,7 @@ pango_coverage_ref (PangoCoverage *coverage)
/**
* pango_coverage_unref:
- * @coverage: a #PangoCoverage
+ * @coverage: (transfer full) (not nullable): a #PangoCoverage
*
* Decrease the reference count on the #PangoCoverage by one.
* If the result is zero, free the coverage and all associated memory.
diff --git a/pango/pango-coverage.h b/pango/pango-coverage.h
index 9189af24..7467dbda 100644
--- a/pango/pango-coverage.h
+++ b/pango/pango-coverage.h
@@ -22,7 +22,7 @@
#ifndef __PANGO_COVERAGE_H__
#define __PANGO_COVERAGE_H__
-#include <glib.h>
+#include <glib-object.h>
#include <pango/pango-version-macros.h>
#include <hb.h>
@@ -63,6 +63,9 @@ typedef enum {
} PangoCoverageLevel;
PANGO_AVAILABLE_IN_ALL
+GType pango_coverage_get_type (void) G_GNUC_CONST;
+
+PANGO_AVAILABLE_IN_ALL
PangoCoverage * pango_coverage_new (void);
PANGO_AVAILABLE_IN_ALL
PangoCoverage * pango_coverage_ref (PangoCoverage *coverage);