[gtk] widget: Use CSS boxes in gtk_widget_real_contains()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] widget: Use CSS boxes in gtk_widget_real_contains()
- Date: Tue, 19 Feb 2019 18:24:18 +0000 (UTC)
commit 4529f52c0227925963b3302c6813caa99febd7a3
Author: Timm Bäder <mail baedert org>
Date: Tue Feb 19 17:19:23 2019 +0100
widget: Use CSS boxes in gtk_widget_real_contains()
gtk/gtkwidget.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index a139d29579..0ba379e23a 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -799,12 +799,12 @@ gtk_widget_real_contains (GtkWidget *widget,
gdouble x,
gdouble y)
{
- graphene_rect_t widget_bounds;
+ GtkCssBoxes boxes;
- gtk_widget_compute_bounds (widget, widget, &widget_bounds);
+ gtk_css_boxes_init (&boxes, widget);
/* XXX: This misses rounded rects */
- return graphene_rect_contains_point (&widget_bounds,
+ return graphene_rect_contains_point (gtk_css_boxes_get_border_rect (&boxes),
&(graphene_point_t){x, y});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]