[libgdata] [introspection] Add missing annotations to GDataGDIMAddress
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] [introspection] Add missing annotations to GDataGDIMAddress
- Date: Tue, 3 Aug 2010 08:52:31 +0000 (UTC)
commit 6122f99aa2ed0273f9a6474a299e9636cc9e3750
Author: Philip Withnall <philip tecnocode co uk>
Date: Tue Aug 3 09:34:17 2010 +0100
[introspection] Add missing annotations to GDataGDIMAddress
gdata/gd/gdata-gd-im-address.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gdata/gd/gdata-gd-im-address.c b/gdata/gd/gdata-gd-im-address.c
index 1ada4a7..624d7e6 100644
--- a/gdata/gd/gdata-gd-im-address.c
+++ b/gdata/gd/gdata-gd-im-address.c
@@ -318,9 +318,9 @@ get_namespaces (GDataParsable *parsable, GHashTable *namespaces)
/**
* gdata_gd_im_address_new:
* @address: the IM address
- * @protocol: a URI identifying the IM protocol, or %NULL
- * @relation_type: the relationship between the IM address and its owner, or %NULL
- * @label: a human-readable label for the IM address, or %NULL
+ * @protocol: (allow-none): a URI identifying the IM protocol, or %NULL
+ * @relation_type: (allow-none): the relationship between the IM address and its owner, or %NULL
+ * @label: (allow-none): a human-readable label for the IM address, or %NULL
* @is_primary: %TRUE if this IM address is its owner's primary address, %FALSE otherwise
*
* Creates a new #GDataGDIMAddress. More information is available in the <ulink type="http"
@@ -334,7 +334,7 @@ GDataGDIMAddress *
gdata_gd_im_address_new (const gchar *address, const gchar *protocol, const gchar *relation_type, const gchar *label, gboolean is_primary)
{
g_return_val_if_fail (address != NULL && *address != '\0', NULL);
- g_return_val_if_fail (protocol != NULL && *protocol != '\0', NULL);
+ g_return_val_if_fail (protocol == NULL || *protocol != '\0', NULL);
g_return_val_if_fail (relation_type == NULL || *relation_type != '\0', NULL);
return g_object_new (GDATA_TYPE_GD_IM_ADDRESS, "address", address, "protocol", protocol, "relation-type", relation_type,
"label", label, "is-primary", is_primary, NULL);
@@ -397,7 +397,7 @@ gdata_gd_im_address_get_protocol (GDataGDIMAddress *self)
/**
* gdata_gd_im_address_set_protocol:
* @self: a #GDataGDIMAddress
- * @protocol: the new IM protocol
+ * @protocol: (allow-none): the new IM protocol, or %NULL
*
* Sets the #GDataGDIMAddress:protocol property to @protocol.
*
@@ -407,7 +407,7 @@ void
gdata_gd_im_address_set_protocol (GDataGDIMAddress *self, const gchar *protocol)
{
g_return_if_fail (GDATA_IS_GD_IM_ADDRESS (self));
- g_return_if_fail (protocol != NULL && *protocol != '\0');
+ g_return_if_fail (protocol == NULL || *protocol != '\0');
g_free (self->priv->protocol);
self->priv->protocol = g_strdup (protocol);
@@ -434,7 +434,7 @@ gdata_gd_im_address_get_relation_type (GDataGDIMAddress *self)
/**
* gdata_gd_im_address_set_relation_type:
* @self: a #GDataGDIMAddress
- * @relation_type: the new relation type for the im_address, or %NULL
+ * @relation_type: (allow-none): the new relation type for the im_address, or %NULL
*
* Sets the #GDataGDIMAddress:relation-type property to @relation_type.
*
@@ -473,7 +473,7 @@ gdata_gd_im_address_get_label (GDataGDIMAddress *self)
/**
* gdata_gd_im_address_set_label:
* @self: a #GDataGDIMAddress
- * @label: the new label for the IM address, or %NULL
+ * @label: (allow-none): the new label for the IM address, or %NULL
*
* Sets the #GDataGDIMAddress:label property to @label.
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]