1
0
Quellcode durchsuchen

Migrated from vte_terminal_spawn_sync to vte_terminal_spawn_async

Héctor García vor 7 Jahren
Ursprung
Commit
9dd4e7aef0
3 geänderte Dateien mit 12 neuen und 5 gelöschten Zeilen
  1. 4 0
      ChangeLog
  2. 7 5
      src/mssh-terminal.c
  3. 1 0
      src/mssh.c

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+2017-10-03 Héctor García  <[email protected]>
+
+	Migrated from vte_terminal_spawn_sync to vte_terminal_spawn_async
+
 2015-06-08 Héctor García  <[email protected]>
 
 	Added info on man page

+ 7 - 5
src/mssh-terminal.c

@@ -67,17 +67,19 @@ void mssh_terminal_start_session(MSSHTerminal *terminal, char **env)
          args[4] = NULL;
     }
 
-    vte_terminal_spawn_sync(VTE_TERMINAL(terminal),
-                            VTE_PTY_NO_LASTLOG|VTE_PTY_NO_UTMP|VTE_PTY_NO_WTMP,
+    vte_terminal_spawn_async(VTE_TERMINAL(terminal), /* terminal */
+                            VTE_PTY_NO_LASTLOG|VTE_PTY_NO_UTMP|VTE_PTY_NO_WTMP, /* pty_flags */
                             NULL,  /* working dir */
                             args,
                             env,
-                            G_SPAWN_SEARCH_PATH,
+                            G_SPAWN_SEARCH_PATH, /* spawn flags */
                             NULL,  /* child_setup */
                             NULL,  /* child_setup_data */
-                            NULL,  /* *child_pid */
+                            NULL,  /* child setup data destroy */
+                            1000,  /* timeout */
                             NULL,  /* *cancellable */
-                            NULL); /* Error handling */
+                            NULL,  /* callback */
+                            NULL); /* user data for callback */
 
     free(args[0]);
 }

+ 1 - 0
src/mssh.c

@@ -6,6 +6,7 @@
 
 #define GETTEXT_PACKAGE "mssh"
 #include <glib/gi18n-lib.h>
+#include <locale.h>
 
 #include <gtk/gtk.h>