[vte/vte-next: 98/114] Rename API



commit ea6449baac1a7a7efd7c2cb99e471386ed01dee5
Author: Christian Persch <chpe gnome org>
Date:   Thu May 26 22:24:58 2011 +0200

    Rename API

 doc/reference/vte-sections.txt |    4 ++--
 src/vte.c                      |   26 +++++++++++++-------------
 src/vte.h                      |    4 ++--
 src/vteapp.c                   |    2 +-
 4 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/doc/reference/vte-sections.txt b/doc/reference/vte-sections.txt
index 689a7e7..a73b8f2 100644
--- a/doc/reference/vte-sections.txt
+++ b/doc/reference/vte-sections.txt
@@ -64,9 +64,9 @@ vte_get_user_shell
 
 <SUBSECTION>
 vte_terminal_fork_command_full
-vte_terminal_get_pty_object
+vte_terminal_get_pty
+vte_terminal_set_pty
 vte_terminal_pty_new
-vte_terminal_set_pty_object
 vte_terminal_watch_child
 
 <SUBSECTION Standard>
diff --git a/src/vte.c b/src/vte.c
index 153c882..03ca511 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -2811,7 +2811,7 @@ vte_terminal_child_watch_cb(GPid pid,
 		terminal->pvt->pty_pid = -1;
 
 		/* Close out the PTY. */
-                vte_terminal_set_pty_object(terminal, NULL);
+                vte_terminal_set_pty(terminal, NULL);
 
 		/* Tell observers what's happened. */
 		vte_terminal_emit_child_exited(terminal, status);
@@ -2945,7 +2945,7 @@ vte_terminal_pty_new(VteTerminal *terminal,
  * signal will be called with the child's exit status.
  *
  * Prior to calling this function, a #VtePty must have been set in @terminal
- * using vte_terminal_set_pty_object().
+ * using vte_terminal_set_pty().
  * When the child exits, the terminal's #VtePty will be set to %NULL.
  *
  * Note: g_child_watch_add() or g_child_watch_add_full() must not have
@@ -3089,7 +3089,7 @@ vte_terminal_fork_command_full(VteTerminal *terminal,
                 return FALSE;
         }
 
-        vte_terminal_set_pty_object(terminal, pty);
+        vte_terminal_set_pty(terminal, pty);
         vte_terminal_watch_child(terminal, pid);
         g_object_unref (pty);
 
@@ -3107,7 +3107,7 @@ vte_terminal_eof(GIOChannel *channel, VteTerminal *terminal)
 
         g_object_freeze_notify(object);
 
-        vte_terminal_set_pty_object(terminal, NULL);
+        vte_terminal_set_pty(terminal, NULL);
 
 	/* Emit a signal that we read an EOF. */
 	vte_terminal_queue_eof(terminal);
@@ -10581,7 +10581,7 @@ vte_terminal_get_property (GObject *object,
                         g_value_set_boolean (value, vte_terminal_get_mouse_autohide (terminal));
                         break;
                 case PROP_PTY_OBJECT:
-                        g_value_set_object (value, vte_terminal_get_pty_object(terminal));
+                        g_value_set_object (value, vte_terminal_get_pty(terminal));
                         break;
                 case PROP_SCROLLBACK_LINES:
                         g_value_set_uint (value, pvt->scrollback_lines);
@@ -10652,7 +10652,7 @@ vte_terminal_set_property (GObject *object,
                         vte_terminal_set_mouse_autohide (terminal, g_value_get_boolean (value));
                         break;
                 case PROP_PTY_OBJECT:
-                        vte_terminal_set_pty_object (terminal, g_value_get_object (value));
+                        vte_terminal_set_pty(terminal, g_value_get_object (value));
                         break;
                 case PROP_SCROLLBACK_LINES:
                         vte_terminal_set_scrollback_lines (terminal, g_value_get_uint (value));
@@ -12466,18 +12466,18 @@ vte_terminal_get_icon_title(VteTerminal *terminal)
 }
 
 /**
- * vte_terminal_set_pty_object:
+ * vte_terminal_set_pty:
  * @terminal: a #VteTerminal
  * @pty: (allow-none): a #VtePty, or %NULL
  *
  * Sets @pty as the PTY to use in @terminal.
  * Use %NULL to unset the PTY.
  *
- * Since: 0.26.
+ * Since: 0.30
  */
 void
-vte_terminal_set_pty_object(VteTerminal *terminal,
-                            VtePty *pty)
+vte_terminal_set_pty(VteTerminal *terminal,
+                     VtePty *pty)
 {
         VteTerminalPrivate *pvt;
         GObject *object;
@@ -12559,17 +12559,17 @@ vte_terminal_set_pty_object(VteTerminal *terminal,
 }
 
 /**
- * vte_terminal_get_pty_object:
+ * vte_terminal_get_pty:
  * @terminal: a #VteTerminal
  *
  * Returns the #VtePty of @terminal.
  *
  * Returns: (transfer none): a #VtePty, or %NULL
  *
- * Since: 0.26
+ * Since: 0.30
  */
 VtePty *
-vte_terminal_get_pty_object(VteTerminal *terminal)
+vte_terminal_get_pty(VteTerminal *terminal)
 {
         g_return_val_if_fail (VTE_IS_TERMINAL (terminal), NULL);
 
diff --git a/src/vte.h b/src/vte.h
index c4ed863..48cf23c 100644
--- a/src/vte.h
+++ b/src/vte.h
@@ -325,8 +325,8 @@ const char *vte_terminal_get_encoding(VteTerminal *terminal);
 /* Get the contents of the status line. */
 const char *vte_terminal_get_status_line(VteTerminal *terminal);
 
-void vte_terminal_set_pty_object(VteTerminal *terminal, VtePty *pty);
-VtePty *vte_terminal_get_pty_object(VteTerminal *terminal);
+void vte_terminal_set_pty(VteTerminal *terminal, VtePty *pty);
+VtePty *vte_terminal_get_pty(VteTerminal *terminal);
 
 char *vte_get_user_shell (void);
 
diff --git a/src/vteapp.c b/src/vteapp.c
index ad83c40..5424041 100644
--- a/src/vteapp.c
+++ b/src/vteapp.c
@@ -1099,7 +1099,7 @@ main(int argc, char **argv)
 				_exit(0);
 				break;
 			default:
-                                vte_terminal_set_pty_object(terminal, pty);
+                                vte_terminal_set_pty(terminal, pty);
                                 g_object_unref(pty);
                                 vte_terminal_watch_child(terminal, pid);
 				g_print("Child PID is %d (mine is %d).\n",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]