[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:11:31 +0000 (UTC)
commit c76058502b3a597fa7c0945374bba87f9e246cd5
Author: Christian Persch <chpe gnome org>
Date: Wed Jun 1 08:46:33 2011 +0200
widget: Rename API
For consistency, name this vte_terminal_match_remove_all.
doc/reference/vte-sections.txt | 2 +-
src/vte.c | 6 ++++--
src/vte.h | 4 +---
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/doc/reference/vte-sections.txt b/doc/reference/vte-sections.txt
index bc975ec..2c1a91d 100644
--- a/doc/reference/vte-sections.txt
+++ b/doc/reference/vte-sections.txt
@@ -58,9 +58,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 0faa7a0..c7200c6 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -1192,14 +1192,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 9cbacfb..9729bc0 100644
--- a/src/vte.h
+++ b/src/vte.h
@@ -327,8 +327,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. */
@@ -340,8 +338,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]