widget: Avoid some type checks in pick() and contains()

We've already verified that the given pointer is a proper GtkWidget, so
no need to do it all over again.
This commit is contained in:
Timm Bäder 2019-02-19 08:25:49 +01:00 committed by Benjamin Otte
parent a953fd762e
commit 2ecb4003be

View File

@ -11210,7 +11210,7 @@ gtk_widget_contains (GtkWidget *widget,
g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
if (gtk_widget_get_pass_through (widget) ||
!gtk_widget_is_sensitive (widget) ||
!_gtk_widget_is_sensitive (widget) ||
!_gtk_widget_is_drawable (widget))
return FALSE;
@ -11249,7 +11249,7 @@ gtk_widget_pick (GtkWidget *widget,
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
if (gtk_widget_get_pass_through (widget) ||
!gtk_widget_is_sensitive (widget) ||
!_gtk_widget_is_sensitive (widget) ||
!_gtk_widget_is_drawable (widget))
return NULL;