[vte/vte-next: 115/223] Rename API



commit f4ea5528d840556a8d769eaabeeeda91f9fe8e37
Author: Christian Persch <chpe gnome org>
Date:   Sun May 29 16:21:56 2011 +0200

    Rename API

 doc/reference/migration-0-30.xml |    4 ++--
 doc/reference/vte-sections.txt   |    2 +-
 src/vte.c                        |    4 ++--
 src/vte.h                        |   22 +++++++++++-----------
 src/vteapp.c                     |    2 +-
 5 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/doc/reference/migration-0-30.xml b/doc/reference/migration-0-30.xml
index 93e0dd4..b977cd1 100644
--- a/doc/reference/migration-0-30.xml
+++ b/doc/reference/migration-0-30.xml
@@ -214,7 +214,7 @@
           <row>
             <entry>vte_terminal_fork_command_full</entry>
             <entry>
-              Renamed to <link linkend="vte-terminal-fork-command-sync">vte_terminal_fork_command_sync</link>
+              Renamed to <link linkend="vte-terminal-spawn-sync">vte_terminal_spawn_sync</link>
             </entry>
           </row>
           <row>
@@ -289,7 +289,7 @@
       The VteReaper object has been removed. You can replace its use by
       <link linkend="vte-terminal-watch-child">vte_terminal_watch_child</link>
       (which is called by
-      <link linkend="vte-terminal-fork-command-sync">vte_terminal_fork_command_sync</link>)
+      <link linkend="vte-terminal-spawn-sync">vte_terminal_spawn_sync</link>)
       and then listening to the <link linkend="VteTerminal-child-exited">child-exited</link>
       signal. Alternatively, you can use <link linkend="g-child-watch-add">g_child_watch_add</link>
       directly.
diff --git a/doc/reference/vte-sections.txt b/doc/reference/vte-sections.txt
index 8589b01..1c752f1 100644
--- a/doc/reference/vte-sections.txt
+++ b/doc/reference/vte-sections.txt
@@ -69,7 +69,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 f908c4a..b4dcacb 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -2831,7 +2831,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
@@ -2865,7 +2865,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 8736fb0..cbeb6a6 100644
--- a/src/vte.h
+++ b/src/vte.h
@@ -210,17 +210,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 8381fe7..e662bf6 100644
--- a/src/vteapp.c
+++ b/src/vteapp.c
@@ -1102,7 +1102,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]