[pango/introspection-fixes: 3/7] Add PangoCoverage GType getter to the public header
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/introspection-fixes: 3/7] Add PangoCoverage GType getter to the public header
- Date: Fri, 2 Aug 2019 10:29:24 +0000 (UTC)
commit 2bd9b3d7e44d9fc9985f46542824e378144bcb89
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Aug 2 11:04:34 2019 +0100
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.
pango/pango-coverage-private.h | 4 ----
pango/pango-coverage.c | 6 +++---
pango/pango-coverage.h | 5 ++++-
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>
@@ -62,6 +62,9 @@ typedef enum {
PANGO_COVERAGE_EXACT
} 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]