summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-02-16 03:55:19 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-02-16 03:55:19 +0000
commit9049d46586a13c5e3cf0aa002437257c4c10cc3f (patch)
treeda82c5042db9c85d09e8279052bdaac6ee3dcc60
parentc2497bd5fddb1ae3a621fcfb89915756fe5f218e (diff)
parent846e7fb26040edc0ab55be002bd3694625e3eb50 (diff)
downloadpango-9049d46586a13c5e3cf0aa002437257c4c10cc3f.tar.gz
Merge branch 'gir-fixes' into 'master'
Gir fixes See merge request GNOME/pango!285
-rw-r--r--pango/meson.build9
-rw-r--r--pango/pango-attributes.h7
2 files changed, 9 insertions, 7 deletions
diff --git a/pango/meson.build b/pango/meson.build
index 15386661..777f5374 100644
--- a/pango/meson.build
+++ b/pango/meson.build
@@ -54,10 +54,11 @@ pango_headers = [
'pango-tabs.h',
'pango-types.h',
'pango-utils.h',
- 'pango-version-macros.h',
]
-install_headers(pango_headers, subdir: pango_api_path)
+pango_installed_headers = pango_headers + [ 'pango-version-macros.h' ]
+
+install_headers(pango_installed_headers, subdir: pango_api_path)
# Features header
pango_features_conf = configuration_data()
@@ -67,7 +68,7 @@ pango_features_conf.set('PANGO_VERSION_MICRO', pango_micro_version)
pango_features_conf.set('PANGO_API_VERSION', pango_api_version)
pango_features_conf.set('PANGO_CURRENT_MINUS_AGE', '0')
-configure_file(
+pango_features_h = configure_file(
input: 'pango-features.h.meson',
output: 'pango-features.h',
configuration: pango_features_conf,
@@ -135,7 +136,7 @@ if build_gir
endif
pango_gir = gnome.generate_gir(
libpango,
- sources: pango_sources + pango_headers + [ pango_enum_h ],
+ sources: pango_sources + pango_headers + [ pango_enum_h, pango_features_h ],
namespace: 'Pango',
nsversion: pango_api_version,
identifier_prefix: 'Pango',
diff --git a/pango/pango-attributes.h b/pango/pango-attributes.h
index dd38aee2..aecd1199 100644
--- a/pango/pango-attributes.h
+++ b/pango/pango-attributes.h
@@ -267,16 +267,17 @@ typedef enum {
*
* Since: 1.24
*/
+#define PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING ((guint)0)
+
/**
- * PANGO_ATTR_INDEX_TO_TEXT_END:
+ * PANGO_ATTR_INDEX_TO_TEXT_END: (value 4294967295)
*
* This value can be used to set the end_index member of a #PangoAttribute
* such that the attribute covers to the end of the text.
*
* Since: 1.24
*/
-#define PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING 0
-#define PANGO_ATTR_INDEX_TO_TEXT_END G_MAXUINT
+#define PANGO_ATTR_INDEX_TO_TEXT_END ((guint)(G_MAXUINT + 0))
/**
* PangoAttribute: