From 8f8db28925016924380ecb4162e312362f8874b4 Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 5 Jan 2016 15:19:45 +0300 Subject: fix GTK+3 build when our version is unstable (e.g. 1.13.x) due to the tricky macro magic, a piece of code containing a function that doesn't exist in GTK+3 version of VTE hasn't been compiled into the stable versions of mate-terminal. now we bumped version to 1.13.0, that code got into build, and the build broke. this commit should fix it. --- src/terminal-window.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/terminal-window.c b/src/terminal-window.c index 9033cb4..e0cab44 100644 --- a/src/terminal-window.c +++ b/src/terminal-window.c @@ -3426,9 +3426,15 @@ save_contents_dialog_on_response (GtkDialog *dialog, gint response_id, gpointer * This is a sync operation. * Should be replaced with the async version when vte implements that. */ +#if VTE_CHECK_VERSION (0, 38, 0) + vte_terminal_write_contents_sync (terminal, stream, + VTE_WRITE_DEFAULT, + NULL, &error); +#else vte_terminal_write_contents (terminal, stream, VTE_TERMINAL_WRITE_DEFAULT, NULL, &error); +#endif g_object_unref (stream); } -- cgit v1.2.1