]> Pileus Git - ~andy/gtk/commitdiff
[gtkaccessible] Use the correct guards in gtk_accessible_set_widget()
authorJavier Jardón <jjardon@gnome.org>
Tue, 22 Jun 2010 19:10:23 +0000 (21:10 +0200)
committerJavier Jardón <jjardon@gnome.org>
Tue, 22 Jun 2010 19:12:53 +0000 (21:12 +0200)
Also, allow the widget variable to be NULL

gtk/gtkaccessible.c

index a80e98ef4c8fe99240e2fb9232d3a9f4e60b8f79..8e85b31e34763cc8cc6c26d2897da947acbc5854 100644 (file)
@@ -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;
 }