Use the correct guards in gtk_accessible_set_widget()

Also, allow the widget variable to be NULL
This commit is contained in:
Javier Jardón 2010-06-22 21:10:23 +02:00
parent bba451147b
commit 200896e9b9

View 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;
}