summaryrefslogtreecommitdiff
path: root/src/widget.cc
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2022-09-15 17:50:48 +0200
committerChristian Persch <chpe@src.gnome.org>2022-09-20 21:39:57 +0200
commitb939bc12ce80bf5c8ce3d8b94d5b1a261efd4e72 (patch)
treeaef9edf35f8f7128273921c4d7e78cece5547f21 /src/widget.cc
parent0cada177d6989c552063c7fd47cc99b83b9dd79f (diff)
downloadvte-b939bc12ce80bf5c8ce3d8b94d5b1a261efd4e72.tar.gz
widget: Implement clipboard for gtk4
Backported from master, comprising of commits: commit b72b397be45045bc5464ba8ed889f6fb2b39989a commit 7bc143b3e540aa1a6a07dbad45d6caf8c0755a7e commit fb604fe287abf64645a83ef27e2c05da14fbbae0 Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/2557
Diffstat (limited to 'src/widget.cc')
-rw-r--r--src/widget.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/widget.cc b/src/widget.cc
index 5cc2b8fe..b84c0037 100644
--- a/src/widget.cc
+++ b/src/widget.cc
@@ -628,9 +628,10 @@ Widget::clipboard_request_text(ClipboardType type) noexcept
void
Widget::clipboard_set_text(ClipboardType type,
- std::string_view const& str) noexcept
+ char const* str,
+ size_t size) noexcept
{
- clipboard_get(type).set_text(str);
+ clipboard_get(type).set_text(str, size);
}
#if VTE_GTK == 4