summaryrefslogtreecommitdiff
path: root/src/fonts-pangocairo.hh
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2021-02-19 23:49:24 +0100
committerChristian Persch <chpe@src.gnome.org>2021-02-19 23:49:24 +0100
commit3c0072aa77724f3d621350b4467e2dbe9e65251a (patch)
treecced507fdaf3cc314c2cb866cd87bade9ed9e02e /src/fonts-pangocairo.hh
parentf233c8e490eacee02a1c3ae14bfcef2f20092983 (diff)
downloadvte-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.hh5
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,