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



commit dc49050c2a25f0c2093815c372a6db5a70c424ef
Author: Christian Persch <chpe gnome org>
Date:   Wed Jun 1 08:46:33 2011 +0200

    Rename API
    
    For naming consistency, name this vte_terminal_match_remove_all.

 doc/reference/migration-0-30.xml |    6 ++++++
 doc/reference/vte-sections.txt   |    2 +-
 src/vte.c                        |    6 ++++--
 src/vte.h                        |    4 +---
 4 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/doc/reference/migration-0-30.xml b/doc/reference/migration-0-30.xml
index b977cd1..14095d2 100644
--- a/doc/reference/migration-0-30.xml
+++ b/doc/reference/migration-0-30.xml
@@ -236,6 +236,12 @@
             </entry>
           </row>
           <row>
+            <entry>vte_terminal_match_clear_all</entry>
+            <entry>
+              Renamed to <link linkend="vte-terminal-match-remove-all">vte_terminal_match_remove_all</link>
+            </entry>
+          </row>
+          <row>
             <entry>vte_terminal_get_pty</entry>
             <entry>
               Use <link linkend="vte-pty-get-fd">vte_pty_get_fd</link> on the object returned from
diff --git a/doc/reference/vte-sections.txt b/doc/reference/vte-sections.txt
index 1c752f1..f087f93 100644
--- a/doc/reference/vte-sections.txt
+++ b/doc/reference/vte-sections.txt
@@ -41,9 +41,9 @@ vte_terminal_get_text
 vte_terminal_get_text_include_trailing_spaces
 vte_terminal_get_text_range
 vte_terminal_get_cursor_position
-vte_terminal_match_clear_all
 vte_terminal_match_add_gregex
 vte_terminal_match_remove
+vte_terminal_match_remove_all
 vte_terminal_match_check
 vte_terminal_match_set_cursor
 vte_terminal_match_set_cursor_type
diff --git a/src/vte.c b/src/vte.c
index b4dcacb..d31733b 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -1174,14 +1174,16 @@ vte_terminal_set_cursor_from_regex_match(VteTerminal *terminal, struct vte_match
 }
 
 /**
- * vte_terminal_match_clear_all:
+ * vte_terminal_match_remove_all:
  * @terminal: a #VteTerminal
  *
  * Clears the list of regular expressions the terminal uses to highlight text
  * when the user moves the mouse cursor.
+ *
+ * Since: 0.30
  */
 void
-vte_terminal_match_clear_all(VteTerminal *terminal)
+vte_terminal_match_remove_all(VteTerminal *terminal)
 {
 	struct vte_match_regex *regex;
 	guint i;
diff --git a/src/vte.h b/src/vte.h
index cbeb6a6..d225a1a 100644
--- a/src/vte.h
+++ b/src/vte.h
@@ -309,8 +309,6 @@ char *vte_terminal_get_text_range(VteTerminal *terminal,
 				  GArray *attributes);
 void vte_terminal_get_cursor_position(VteTerminal *terminal,
 				      glong *column, glong *row);
-/* Display string matching:  clear all matching expressions. */
-void vte_terminal_match_clear_all(VteTerminal *terminal);
 
 /* Add a matching expression, returning the tag the widget assigns to that
  * expression. */
@@ -322,8 +320,8 @@ void vte_terminal_match_set_cursor_type(VteTerminal *terminal,
 					int tag, GdkCursorType cursor_type);
 void vte_terminal_match_set_cursor_name(VteTerminal *terminal,
 					int tag, const char *cursor_name);
-/* Remove a matching expression by tag. */
 void vte_terminal_match_remove(VteTerminal *terminal, int tag);
+void vte_terminal_match_remove_all(VteTerminal *terminal);
 
 /* Check if a given cell on the screen contains part of a matched string.  If
  * it does, return the string, and store the match tag in the optional tag



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