summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-04-07 15:13:52 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-04-07 15:18:37 +0000
commit676ac380cd10b5c78d222a02e309b8448b17c6e5 (patch)
tree8e914a78494fc7bae44e5eee79d438b8be75cd2f
parentdce2c58799770490022990015f84ab8c7e1f79f1 (diff)
downloadgtk+-676ac380cd10b5c78d222a02e309b8448b17c6e5.tar.gz
widget: Make contains just be about position
Leave out reactiveness considerations here, pick will handle those.
-rw-r--r--gtk/gtkwidget.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index e118af5852..2e6602c0ce 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -11034,18 +11034,11 @@ gtk_widget_get_allocation (GtkWidget *widget,
* @x: X coordinate to test, relative to @widget's origin
* @y: Y coordinate to test, relative to @widget's origin
*
- * Tests if the point at (@x, @y) is contained in @widget. Points
- * inside the widget will respond to mouse and touch events, points
- * outside will not.
+ * Tests if the point at (@x, @y) is contained in @widget.
*
* The coordinates for (@x, @y) must be in widget coordinates, so
* (0, 0) is assumed to be the top left of @widget's content area.
*
- * Pass-through widgets and insensitive widgets do never respond to
- * input and will therefor always return %FALSE here. See
- * gtk_widget_set_can_pick() and gtk_widget_set_sensitive() for
- * details about those functions.
- *
* Returns: %TRUE if @widget contains (@x, @y).
**/
gboolean
@@ -11055,11 +11048,6 @@ gtk_widget_contains (GtkWidget *widget,
{
g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
- if (!gtk_widget_get_can_pick (widget) ||
- !_gtk_widget_is_sensitive (widget) ||
- !_gtk_widget_is_drawable (widget))
- return FALSE;
-
return GTK_WIDGET_GET_CLASS (widget)->contains (widget, x, y);
}