[libgda] Improved gda_connection_event_set_description()'s documentation
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Improved gda_connection_event_set_description()'s documentation
- Date: Thu, 16 Aug 2012 20:14:50 +0000 (UTC)
commit ba6e86efaa826e74e303a841f9c84fad0bde7dc3
Author: Vivien Malerba <malerba gnome-db org>
Date: Thu Aug 16 22:12:49 2012 +0200
Improved gda_connection_event_set_description()'s documentation
libgda/gda-connection-event.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libgda/gda-connection-event.c b/libgda/gda-connection-event.c
index 68c0a0c..76a7bcf 100644
--- a/libgda/gda-connection-event.c
+++ b/libgda/gda-connection-event.c
@@ -225,7 +225,7 @@ gda_connection_event_get_description (GdaConnectionEvent *event)
/**
* gda_connection_event_set_description:
* @event: a #GdaConnectionEvent.
- * @description: a description.
+ * @description: (allow-none): a description, or %NULL (to unset current description if any)
*
* Sets @event's @description. This function should not be called directly.
*/
@@ -236,7 +236,10 @@ gda_connection_event_set_description (GdaConnectionEvent *event, const gchar *de
if (event->priv->description)
g_free (event->priv->description);
- event->priv->description = g_strdup (description);
+ if (description)
+ event->priv->description = g_strdup (description);
+ else
+ event->priv->description = NULL;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]