diff options
author | Christian Persch <chpe@src.gnome.org> | 2021-02-19 23:49:24 +0100 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2021-02-19 23:49:24 +0100 |
commit | 3c0072aa77724f3d621350b4467e2dbe9e65251a (patch) | |
tree | cced507fdaf3cc314c2cb866cd87bade9ed9e02e /src/fonts-pangocairo.hh | |
parent | f233c8e490eacee02a1c3ae14bfcef2f20092983 (diff) | |
download | vte-3c0072aa77724f3d621350b4467e2dbe9e65251a.tar.gz |
all: Initial port for gtk4wip/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/fonts-pangocairo.hh')
-rw-r--r-- | src/fonts-pangocairo.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fonts-pangocairo.hh b/src/fonts-pangocairo.hh index c7aac75c..586e6668 100644 --- a/src/fonts-pangocairo.hh +++ b/src/fonts-pangocairo.hh @@ -120,7 +120,7 @@ class FontInfo { int const font_cache_timeout = 30; // seconds public: - FontInfo(PangoContext* context); + FontInfo(vte::glib::RefPtr<PangoContext> context); ~FontInfo(); FontInfo* ref() @@ -269,9 +269,12 @@ private: PangoFontDescription const* desc, PangoLanguage* language, guint fontconfig_timestamp); +#if VTE_GTK == 3 static FontInfo *create_for_screen(GdkScreen* screen, PangoFontDescription const* desc, PangoLanguage* language); +#endif + public: static FontInfo *create_for_widget(GtkWidget* widget, |