Use the correct guards in gtk_accessible_set_widget()
Also, allow the widget variable to be NULL
This commit is contained in:
parent
bba451147b
commit
200896e9b9
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue