[gtk/readonly-events-1: 38/49] wip: scrolledwindow stop using targets
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/readonly-events-1: 38/49] wip: scrolledwindow stop using targets
- Date: Sun, 16 Feb 2020 14:32:56 +0000 (UTC)
commit 7cd1fec1121a4198a36f20efe5a8cc9f31a66a15
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 15 23:33:17 2020 -0500
wip: scrolledwindow stop using targets
gtk/gtkscrolledwindow.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 55f390b07d..0b072b4424 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -1199,9 +1199,7 @@ captured_motion (GtkScrolledWindow *sw,
gdk_event_get_state (event, &state);
- target = GTK_WIDGET (gdk_event_get_target (event));
- while (target && !GTK_IS_SCROLLBAR (target))
- target = gtk_widget_get_parent (target);
+ target = gtk_widget_pick (GTK_WIDGET (sw), x, y, GTK_PICK_DEFAULT);
if (!target &&
(state & (GDK_BUTTON1_MASK | GDK_BUTTON2_MASK | GDK_BUTTON3_MASK)) != 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]