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.
master-1.22
monsta 2016-01-05 15:19:45 +03:00
parent 69be1c9a9d
commit 8f8db28925
1 changed files with 6 additions and 0 deletions

View File

@ -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);
}