[vinagre] Add some checks
- From: Jonh Wendell <jwendell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vinagre] Add some checks
- Date: Fri, 17 Sep 2010 19:46:56 +0000 (UTC)
commit 9572a9c96911f90785b465078675c5cf4ddfb8ff
Author: Jonh Wendell <jwendell gnome org>
Date: Fri Sep 17 16:52:31 2010 -0300
Add some checks
vinagre/vinagre-connection.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/vinagre/vinagre-connection.c b/vinagre/vinagre-connection.c
index da014cc..9d19ef5 100644
--- a/vinagre/vinagre-connection.c
+++ b/vinagre/vinagre-connection.c
@@ -701,6 +701,8 @@ void
vinagre_connection_fill_writer (VinagreConnection *conn,
xmlTextWriterPtr writer)
{
+ g_return_if_fail (VINAGRE_IS_CONNECTION (conn));
+
VINAGRE_CONNECTION_GET_CLASS (conn)->impl_fill_writer (conn, writer);
}
@@ -708,12 +710,16 @@ void
vinagre_connection_parse_item (VinagreConnection *conn,
xmlNode *root)
{
+ g_return_if_fail (VINAGRE_IS_CONNECTION (conn));
+
VINAGRE_CONNECTION_GET_CLASS (conn)->impl_parse_item (conn, root);
}
gchar*
vinagre_connection_get_best_name (VinagreConnection *conn)
{
+ g_return_val_if_fail (VINAGRE_IS_CONNECTION (conn), NULL);
+
return VINAGRE_CONNECTION_GET_CLASS (conn)->impl_get_best_name (conn);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]