Commit bbe25c8a authored by Christian Persch's avatar Christian Persch

widget: Rename API

'spawn' is a better name than 'fork' for this.
parent 2067d8a6
...@@ -85,7 +85,7 @@ vte_get_default_emulation ...@@ -85,7 +85,7 @@ vte_get_default_emulation
vte_get_user_shell vte_get_user_shell
<SUBSECTION> <SUBSECTION>
vte_terminal_fork_command_sync vte_terminal_spawn_sync
vte_terminal_get_pty vte_terminal_get_pty
vte_terminal_set_pty vte_terminal_set_pty
vte_terminal_pty_new_sync vte_terminal_pty_new_sync
......
...@@ -3475,7 +3475,7 @@ vte_get_user_shell (void) ...@@ -3475,7 +3475,7 @@ vte_get_user_shell (void)
} }
/** /**
* vte_terminal_fork_command_sync: * vte_terminal_spawn_sync:
* @terminal: a #VteTerminal * @terminal: a #VteTerminal
* @pty_flags: flags from #VtePtyFlags * @pty_flags: flags from #VtePtyFlags
* @working_directory: (allow-none): the name of a directory the command should start * @working_directory: (allow-none): the name of a directory the command should start
...@@ -3509,7 +3509,7 @@ vte_get_user_shell (void) ...@@ -3509,7 +3509,7 @@ vte_get_user_shell (void)
* Since: 0.30 * Since: 0.30
*/ */
gboolean gboolean
vte_terminal_fork_command_sync(VteTerminal *terminal, vte_terminal_spawn_sync(VteTerminal *terminal,
VtePtyFlags pty_flags, VtePtyFlags pty_flags,
const char *working_directory, const char *working_directory,
char **argv, char **argv,
......
...@@ -190,17 +190,17 @@ VtePty *vte_terminal_pty_new_sync (VteTerminal *terminal, ...@@ -190,17 +190,17 @@ VtePty *vte_terminal_pty_new_sync (VteTerminal *terminal,
void vte_terminal_watch_child (VteTerminal *terminal, void vte_terminal_watch_child (VteTerminal *terminal,
GPid child_pid); GPid child_pid);
gboolean vte_terminal_fork_command_sync(VteTerminal *terminal, gboolean vte_terminal_spawn_sync(VteTerminal *terminal,
VtePtyFlags pty_flags, VtePtyFlags pty_flags,
const char *working_directory, const char *working_directory,
char **argv, char **argv,
char **envv, char **envv,
GSpawnFlags spawn_flags, GSpawnFlags spawn_flags,
GSpawnChildSetupFunc child_setup, GSpawnChildSetupFunc child_setup,
gpointer child_setup_data, gpointer child_setup_data,
GPid *child_pid /* out */, GPid *child_pid /* out */,
GCancellable *cancellable, GCancellable *cancellable,
GError **error); GError **error);
/* Send data to the terminal to display, or to the terminal's forked command /* Send data to the terminal to display, or to the terminal's forked command
* to handle in some way. If it's 'cat', they should be the same. */ * to handle in some way. If it's 'cat', they should be the same. */
......
...@@ -1111,7 +1111,7 @@ main(int argc, char **argv) ...@@ -1111,7 +1111,7 @@ main(int argc, char **argv)
command = "/bin/sh"; command = "/bin/sh";
if (!g_shell_parse_argv(command, &command_argc, &command_argv, &err) || if (!g_shell_parse_argv(command, &command_argc, &command_argv, &err) ||
!vte_terminal_fork_command_sync(terminal, !vte_terminal_spawn_sync(terminal,
pty_flags, pty_flags,
NULL, NULL,
command_argv, command_argv,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment