gio: Add various missing property documentation comments

Previously these properties would have been documented using the strings
from the pspec, but those will be removed in the following commit. Re-add
the documentation using those strings, but as gi-docgen documentation
comments.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #2991
This commit is contained in:
Philip Withnall
2023-11-29 13:23:09 +00:00
parent f6a1599e3c
commit f3aebf0c15
37 changed files with 610 additions and 1 deletions

View File

@@ -135,6 +135,13 @@ g_inet_address_mask_class_init (GInetAddressMaskClass *klass)
gobject_class->get_property = g_inet_address_mask_get_property;
gobject_class->dispose = g_inet_address_mask_dispose;
/**
* GInetAddressMask:family:
*
* The address family (IPv4 or IPv6).
*
* Since: 2.32
*/
g_object_class_install_property (gobject_class, PROP_FAMILY,
g_param_spec_enum ("family",
P_("Address family"),
@@ -143,6 +150,14 @@ g_inet_address_mask_class_init (GInetAddressMaskClass *klass)
G_SOCKET_FAMILY_INVALID,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
/**
* GInetAddressMask:address:
*
* The base address.
*
* Since: 2.32
*/
g_object_class_install_property (gobject_class, PROP_ADDRESS,
g_param_spec_object ("address",
P_("Address"),
@@ -150,6 +165,14 @@ g_inet_address_mask_class_init (GInetAddressMaskClass *klass)
G_TYPE_INET_ADDRESS,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
/**
* GInetAddressMask:length:
*
* The prefix length, in bytes.
*
* Since: 2.32
*/
g_object_class_install_property (gobject_class, PROP_LENGTH,
g_param_spec_uint ("length",
P_("Length"),