summaryrefslogtreecommitdiff
path: root/girepository/gipropertyinfo.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-06-28 23:22:35 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2021-08-05 17:47:29 +0100
commit4bcb26d600e49ddafe8d1d12b33e0801ab243aac (patch)
tree7da4f97bf1d28e12659b55faaaa49514a847d3e5 /girepository/gipropertyinfo.c
parent194088c24796792fc13622d0f74a8b0ee819135b (diff)
downloadgobject-introspection-4bcb26d600e49ddafe8d1d12b33e0801ab243aac.tar.gz
Use a macro for the missing accessor sentinel value
Easier to read than `0x3ff`.
Diffstat (limited to 'girepository/gipropertyinfo.c')
-rw-r--r--girepository/gipropertyinfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/girepository/gipropertyinfo.c b/girepository/gipropertyinfo.c
index 9b854b90..4a291a06 100644
--- a/girepository/gipropertyinfo.c
+++ b/girepository/gipropertyinfo.c
@@ -142,7 +142,7 @@ g_property_info_get_ownership_transfer (GIPropertyInfo *info)
* The setter is only available for %G_PARAM_WRITABLE properties that
* are also not %G_PARAM_CONSTRUCT_ONLY.
*
- * Returns: (transfer full): the function info or %NULL if not set.
+ * Returns: (transfer full) (nullable): the function info or %NULL if not set.
* Free it with g_base_info_unref() when done.
*/
GIFunctionInfo *
@@ -160,7 +160,7 @@ g_property_info_get_setter (GIPropertyInfo *info)
if (!blob->writable || blob->construct_only)
return NULL;
- if (blob->setter == 0x3ff)
+ if (blob->setter == ACCESSOR_SENTINEL)
return NULL;
container = rinfo->container;
@@ -181,7 +181,7 @@ g_property_info_get_setter (GIPropertyInfo *info)
*
* The setter is only available for %G_PARAM_READABLE properties.
*
- * Returns: (transfer full): the function info or %NULL if not set.
+ * Returns: (transfer full) (nullable): the function info or %NULL if not set.
* Free it with g_base_info_unref() when done.
*/
GIFunctionInfo *
@@ -199,7 +199,7 @@ g_property_info_get_getter (GIPropertyInfo *info)
if (!blob->readable)
return NULL;
- if (blob->getter == 0x3ff)
+ if (blob->getter == ACCESSOR_SENTINEL)
return NULL;
container = rinfo->container;