summaryrefslogtreecommitdiff
path: root/gtk/gtkmain.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-04-07 21:36:40 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-04-08 08:42:25 -0400
commitef982b7d46125f206b59ae4222d26947bda86246 (patch)
tree02793fc177d5737d5177cfcc0bfa4e0191c5ec26 /gtk/gtkmain.c
parent1b362d1f01f114a6d5a324158a50a90e6b9a010b (diff)
downloadgtk+-ef982b7d46125f206b59ae4222d26947bda86246.tar.gz
Rename things
Rename the can-pick property to can-target, and redo the pick flags with more descriptive names.
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r--gtk/gtkmain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index e00cc59497..bf58cb9453 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1703,7 +1703,7 @@ handle_pointing_event (GdkEvent *event)
target = gtk_window_lookup_pointer_focus_implicit_grab (toplevel, device, sequence);
if (!target)
- target = gtk_widget_pick (toplevel_widget, x, y, 0);
+ target = gtk_widget_pick (toplevel_widget, x, y, GTK_PICK_DEFAULT);
if (!target)
target = toplevel_widget;
@@ -1742,7 +1742,7 @@ handle_pointing_event (GdkEvent *event)
if (event->any.type == GDK_BUTTON_RELEASE)
{
GtkWidget *new_target;
- new_target = gtk_widget_pick (GTK_WIDGET (toplevel), x, y, 0);
+ new_target = gtk_widget_pick (GTK_WIDGET (toplevel), x, y, GTK_PICK_DEFAULT);
if (new_target == NULL)
new_target = GTK_WIDGET (toplevel);
gtk_synthesize_crossing_events (GTK_ROOT (toplevel), target, new_target, event,