summaryrefslogtreecommitdiff
path: root/src/clipboard-gtk.hh
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2021-02-21 20:05:43 +0100
committerChristian Persch <chpe@src.gnome.org>2021-02-21 20:05:43 +0100
commit075d0b37049244429b7d709dc8c21f67023bc048 (patch)
tree36d337ab3984502b6d84917c76b697b23d57ccf1 /src/clipboard-gtk.hh
parent94966f638af6999103f89cd8e31b71701cca495b (diff)
downloadvte-075d0b37049244429b7d709dc8c21f67023bc048.tar.gz
all: Initial port for gtk4
Add meson changes to build a gtk4 variant of libvte, plus a gtk4 variant of the test application. Make the minimal code changes required to successfully build and run on gtk4. No event handlers yet, and no public API to replace the gtk3 specific APIs. That will come later. This should be good enough to get non-terminal users of libvte started on porting to gtk4. https://gitlab.gnome.org/GNOME/vte/-/issues/12
Diffstat (limited to 'src/clipboard-gtk.hh')
-rw-r--r--src/clipboard-gtk.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/clipboard-gtk.hh b/src/clipboard-gtk.hh
index d2b66228..45660c3e 100644
--- a/src/clipboard-gtk.hh
+++ b/src/clipboard-gtk.hh
@@ -75,7 +75,11 @@ public:
RequestFailedCallback failed_callback) /* throws */;
private:
+#if VTE_GTK == 3
vte::glib::RefPtr<GtkClipboard> m_clipboard;
+#elif VTE_GTK == 4
+ vte::glib::RefPtr<GdkClipboard> m_clipboard;
+#endif
std::weak_ptr<Widget> m_delegate;
ClipboardType m_type;