forked from AuroraMiddleware/gtk
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:
parent
a953fd762e
commit
2ecb4003be
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user