diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-04-07 21:36:40 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-04-08 08:42:25 -0400 |
commit | ef982b7d46125f206b59ae4222d26947bda86246 (patch) | |
tree | 02793fc177d5737d5177cfcc0bfa4e0191c5ec26 /tests | |
parent | 1b362d1f01f114a6d5a324158a50a90e6b9a010b (diff) | |
download | gtk+-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 'tests')
-rw-r--r-- | tests/testoverlay.c | 2 | ||||
-rw-r--r-- | tests/testwidgettransforms.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/testoverlay.c b/tests/testoverlay.c index 16835c06fe..b73b0fc783 100644 --- a/tests/testoverlay.c +++ b/tests/testoverlay.c @@ -459,7 +459,7 @@ test_input_stacking (void) vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_overlay_add_overlay (GTK_OVERLAY (overlay), vbox); - gtk_widget_set_can_pick (vbox, FALSE); + gtk_widget_set_can_target (vbox, FALSE); gtk_widget_set_halign (vbox, GTK_ALIGN_CENTER); gtk_widget_set_valign (vbox, GTK_ALIGN_CENTER); diff --git a/tests/testwidgettransforms.c b/tests/testwidgettransforms.c index 314d72c01d..91ac1d0d15 100644 --- a/tests/testwidgettransforms.c +++ b/tests/testwidgettransforms.c @@ -187,12 +187,12 @@ gtk_transform_tester_snapshot (GtkWidget *widget, const float py = y; GtkWidget *picked; #if 1 - picked = gtk_widget_pick (widget, px, py, 0); + picked = gtk_widget_pick (widget, px, py, GTK_PICK_DEFAULT); #else { int dx, dy; gtk_widget_translate_coordinates (widget, self->test_widget, px, py, &dx, &dy); - picked = gtk_widget_pick (self->test_widget, dx, dy); + picked = gtk_widget_pick (self->test_widget, dx, dy, GTK_PICK_DEFAULT); } #endif |