aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-05-22 18:26:35 -0400
committerDavid Robillard <d@drobilla.net>2023-11-11 09:54:18 -0500
commit91051e9059b67b8d633e385afb48a36d4f9467ba (patch)
tree0d221ea736e27dec7f405acfe2b866b4f81398e3 /test
parentc59e88aa6fa60c6f7424da737fcaf0496a0bf3d6 (diff)
downloadpugl-91051e9059b67b8d633e385afb48a36d4f9467ba.tar.gz
pugl-91051e9059b67b8d633e385afb48a36d4f9467ba.tar.bz2
pugl-91051e9059b67b8d633e385afb48a36d4f9467ba.zip
Add action parameter to puglAcceptOffer()
Diffstat (limited to 'test')
-rw-r--r--test/test_local_copy_paste.c3
-rw-r--r--test/test_remote_copy_paste.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/test/test_local_copy_paste.c b/test/test_local_copy_paste.c
index 9aa4cba..20332d1 100644
--- a/test/test_local_copy_paste.c
+++ b/test/test_local_copy_paste.c
@@ -98,7 +98,8 @@ onEvent(PuglView* view, const PuglEvent* event)
if (test->state == PASTED) {
test->state = RECEIVED_OFFER;
- assert(!puglAcceptOffer(view, &event->offer, 0, puglGetFrame(view)));
+ assert(!puglAcceptOffer(
+ view, &event->offer, 0, PUGL_ACTION_COPY, puglGetFrame(view)));
}
break;
diff --git a/test/test_remote_copy_paste.c b/test/test_remote_copy_paste.c
index de5a61b..e6464d8 100644
--- a/test/test_remote_copy_paste.c
+++ b/test/test_remote_copy_paste.c
@@ -108,7 +108,8 @@ onPasterEvent(PuglView* const view, const PuglEvent* const event)
if (test->state == PASTED) {
test->state = RECEIVED_OFFER;
- assert(!puglAcceptOffer(view, &event->offer, 0, puglGetFrame(view)));
+ assert(!puglAcceptOffer(
+ view, &event->offer, 0, PUGL_ACTION_COPY, puglGetFrame(view)));
}
break;