[vte] widget: Rename API
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Rename API
- Date: Sun, 6 Apr 2014 17:01:41 +0000 (UTC)
commit bbe25c8a64e673c7187be0b349840a73439f9d07
Author: Christian Persch <chpe gnome org>
Date: Sun May 29 16:21:56 2011 +0200
widget: Rename API
'spawn' is a better name than 'fork' for this.
doc/reference/vte-sections.txt | 2 +-
src/vte.c | 4 ++--
src/vte.h | 22 +++++++++++-----------
src/vteapp.c | 2 +-
4 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/doc/reference/vte-sections.txt b/doc/reference/vte-sections.txt
index de056d7..bc975ec 100644
--- a/doc/reference/vte-sections.txt
+++ b/doc/reference/vte-sections.txt
@@ -85,7 +85,7 @@ vte_get_default_emulation
vte_get_user_shell
<SUBSECTION>
-vte_terminal_fork_command_sync
+vte_terminal_spawn_sync
vte_terminal_get_pty
vte_terminal_set_pty
vte_terminal_pty_new_sync
diff --git a/src/vte.c b/src/vte.c
index 69c034d..0faa7a0 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -3475,7 +3475,7 @@ vte_get_user_shell (void)
}
/**
- * vte_terminal_fork_command_sync:
+ * vte_terminal_spawn_sync:
* @terminal: a #VteTerminal
* @pty_flags: flags from #VtePtyFlags
* @working_directory: (allow-none): the name of a directory the command should start
@@ -3509,7 +3509,7 @@ vte_get_user_shell (void)
* Since: 0.30
*/
gboolean
-vte_terminal_fork_command_sync(VteTerminal *terminal,
+vte_terminal_spawn_sync(VteTerminal *terminal,
VtePtyFlags pty_flags,
const char *working_directory,
char **argv,
diff --git a/src/vte.h b/src/vte.h
index 7bb4a75..9cbacfb 100644
--- a/src/vte.h
+++ b/src/vte.h
@@ -190,17 +190,17 @@ VtePty *vte_terminal_pty_new_sync (VteTerminal *terminal,
void vte_terminal_watch_child (VteTerminal *terminal,
GPid child_pid);
-gboolean vte_terminal_fork_command_sync(VteTerminal *terminal,
- VtePtyFlags pty_flags,
- const char *working_directory,
- char **argv,
- char **envv,
- GSpawnFlags spawn_flags,
- GSpawnChildSetupFunc child_setup,
- gpointer child_setup_data,
- GPid *child_pid /* out */,
- GCancellable *cancellable,
- GError **error);
+gboolean vte_terminal_spawn_sync(VteTerminal *terminal,
+ VtePtyFlags pty_flags,
+ const char *working_directory,
+ char **argv,
+ char **envv,
+ GSpawnFlags spawn_flags,
+ GSpawnChildSetupFunc child_setup,
+ gpointer child_setup_data,
+ GPid *child_pid /* out */,
+ GCancellable *cancellable,
+ GError **error);
/* 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. */
diff --git a/src/vteapp.c b/src/vteapp.c
index 254adfe..d30e3a2 100644
--- a/src/vteapp.c
+++ b/src/vteapp.c
@@ -1111,7 +1111,7 @@ main(int argc, char **argv)
command = "/bin/sh";
if (!g_shell_parse_argv(command, &command_argc, &command_argv, &err) ||
- !vte_terminal_fork_command_sync(terminal,
+ !vte_terminal_spawn_sync(terminal,
pty_flags,
NULL,
command_argv,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]