summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-05 15:19:45 +0300
committermonsta <[email protected]>2016-01-05 15:19:45 +0300
commit8f8db28925016924380ecb4162e312362f8874b4 (patch)
treef6a7b76115c10b8edd48770c28e14e4b67380200
parent69be1c9a9d3020501a9a4b9c4418f9578df8c7a4 (diff)
downloadmate-terminal-8f8db28925016924380ecb4162e312362f8874b4.tar.bz2
mate-terminal-8f8db28925016924380ecb4162e312362f8874b4.tar.xz
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.
-rw-r--r--src/terminal-window.c6
1 files changed, 6 insertions, 0 deletions
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);
}