[gtk+/native-layout: 43/59] [gtkaccessible] Use the correct guards in gtk_accessible_set_widget()



commit 380120bda9cffb24ad597b65c78757e6168ad072
Author: Javier Jardón <jjardon gnome org>
Date:   Tue Jun 22 21:10:23 2010 +0200

    [gtkaccessible] Use the correct guards in gtk_accessible_set_widget()
    
    Also, allow the widget variable to be NULL

 gtk/gtkaccessible.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkaccessible.c b/gtk/gtkaccessible.c
index a80e98e..8e85b31 100644
--- a/gtk/gtkaccessible.c
+++ b/gtk/gtkaccessible.c
@@ -60,8 +60,7 @@ void
 gtk_accessible_set_widget (GtkAccessible *accessible,
                            GtkWidget     *widget)
 {
-  g_return_val_if_fail (GTK_IS_ACCESSIBLE (accessible), NULL);
-  g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
+  g_return_if_fail (GTK_IS_ACCESSIBLE (accessible));
 
   accessible->widget = widget;
 }



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