[vinagre/plugin] Added some asserts to vinagre_connection_parse_options_widget()



commit f7209de7939b25478d17dc949967a819a96711f0
Author: Jonh Wendell <jwendell gnome org>
Date:   Fri Jul 24 09:45:44 2009 -0300

    Added some asserts to vinagre_connection_parse_options_widget()

 vinagre/vinagre-connection.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vinagre/vinagre-connection.c b/vinagre/vinagre-connection.c
index 769a3c4..a170827 100644
--- a/vinagre/vinagre-connection.c
+++ b/vinagre/vinagre-connection.c
@@ -731,6 +731,9 @@ void
 vinagre_connection_parse_options_widget (VinagreConnection *conn,
 					 GtkWidget         *widget)
 {
+  g_return_if_fail (VINAGRE_IS_CONNECTION (conn));
+  g_return_if_fail (GTK_IS_WIDGET (widget));
+
   VINAGRE_CONNECTION_GET_CLASS (conn)->impl_parse_options_widget (conn, widget);
 }
 /* vim: set ts=8: */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]