Package: giggle / 0.7-3

upstream-port-to-vte-2.91API.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
From b9e260840d03e33ac55142719f3d54129b54cc70 Mon Sep 17 00:00:00 2001
From: Debarshi Ray <debarshir@gnome.org>
Date: Mon, 26 Jan 2015 15:38:24 +0100
Subject: [PATCH] Port to vte-2.91 API

https://bugzilla.gnome.org/show_bug.cgi?id=743537
---
 configure.ac                   |  2 +-
 plugins/giggle-view-terminal.c | 19 ++++++++++---------
 2 files changed, 11 insertions(+), 10 deletions(-)

--- a/configure.ac
+++ b/configure.ac
@@ -108,9 +108,9 @@
 
 AS_IF([test "x$enable_terminal" = "xyes"],
       [
         PKG_CHECK_MODULES([VTE],
-                          [vte-2.90 >= $VTE_REQUIRED_VERSION],
+                          [vte-2.91 >= $VTE_REQUIRED_VERSION],
                           [have_vte=yes
                            AC_DEFINE([HAVE_VTE], [1],
                                      [Use features from vte])
                           ],
--- a/plugins/giggle-view-terminal.c
+++ b/plugins/giggle-view-terminal.c
@@ -185,17 +185,18 @@
 	real_argv[0] = g_strdup (shell ? shell : "/bin/sh");
 	real_argv[1] = NULL;
 	spawn_flags = G_SPAWN_CHILD_INHERITS_STDIN | G_SPAWN_SEARCH_PATH | G_SPAWN_FILE_AND_ARGV_ZERO;
 
-	succes = vte_terminal_fork_command_full (VTE_TERMINAL (terminal),
-	                                         pty_flags,
-	                                         directory,
-	                                         real_argv,
-	                                         NULL,
-	                                         spawn_flags,
-	                                         NULL, NULL,
-	                                         NULL,
-	                                         &error);
+	succes = vte_terminal_spawn_sync (VTE_TERMINAL (terminal),
+	                                  pty_flags,
+	                                  directory,
+	                                  real_argv,
+	                                  NULL,
+	                                  spawn_flags,
+	                                  NULL, NULL,
+	                                  NULL,
+	                                  NULL,
+	                                  &error);
 	g_strfreev (real_argv);
 
 	if (succes == FALSE) {
 		g_warning ("%s: %s: vte_terminal_fork_command_full failed %s",