forked from AuroraMiddleware/gtk
widget: Make contains respect rounded borders
We have the api for this now.
This commit is contained in:
parent
df18223487
commit
dce2c58799
@ -824,9 +824,8 @@ gtk_widget_real_contains (GtkWidget *widget,
|
|||||||
|
|
||||||
gtk_css_boxes_init (&boxes, widget);
|
gtk_css_boxes_init (&boxes, widget);
|
||||||
|
|
||||||
/* XXX: This misses rounded rects */
|
return gsk_rounded_rect_contains_point (gtk_css_boxes_get_border_box (&boxes),
|
||||||
return graphene_rect_contains_point (gtk_css_boxes_get_border_rect (&boxes),
|
&GRAPHENE_POINT_INIT (x, y));
|
||||||
&(graphene_point_t){x, y});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static GtkWidget *
|
static GtkWidget *
|
||||||
|
Loading…
Reference in New Issue
Block a user