[gtkaccessible] Use the correct guards in gtk_accessible_set_widget()
Also, allow the widget variable to be NULL
This commit is contained in:
parent
adf1bbe28a
commit
3c46d9acbc
@ -60,8 +60,7 @@ void
|
|||||||
gtk_accessible_set_widget (GtkAccessible *accessible,
|
gtk_accessible_set_widget (GtkAccessible *accessible,
|
||||||
GtkWidget *widget)
|
GtkWidget *widget)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (GTK_IS_ACCESSIBLE (accessible), NULL);
|
g_return_if_fail (GTK_IS_ACCESSIBLE (accessible));
|
||||||
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
|
|
||||||
|
|
||||||
accessible->widget = widget;
|
accessible->widget = widget;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user