[gtksourceview/wip/search] Rename function
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/search] Rename function
- Date: Mon, 1 Jul 2013 15:52:55 +0000 (UTC)
commit 757a57ab480c915289d08dd435cf0ebfa4692cea
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Jul 1 17:51:49 2013 +0200
Rename function
For replace all, it will be better to have
gtk_source_buffer_search_replace_all()
than
gtk_source_buffer_replace_all_search_matches()
gtksourceview/gtksourcebuffer.c | 12 ++++++------
gtksourceview/gtksourcebuffer.h | 2 +-
tests/test-search-ui.c | 10 +++++-----
3 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/gtksourceview/gtksourcebuffer.c b/gtksourceview/gtksourcebuffer.c
index ef1889f..1563065 100644
--- a/gtksourceview/gtksourcebuffer.c
+++ b/gtksourceview/gtksourcebuffer.c
@@ -2889,7 +2889,7 @@ gtk_source_buffer_backward_search_finish (GtkSourceBuffer *buffer,
}
/**
- * gtk_source_buffer_replace_search_match:
+ * gtk_source_buffer_search_replace:
* @buffer: a #GtkSourceBuffer.
* @match_start: the start of the match to replace, or %NULL.
* @match_end: the end of the match to replace, or %NULL.
@@ -2906,11 +2906,11 @@ gtk_source_buffer_backward_search_finish (GtkSourceBuffer *buffer,
* Since: 3.10
*/
gboolean
-gtk_source_buffer_replace_search_match (GtkSourceBuffer *buffer,
- const GtkTextIter *match_start,
- const GtkTextIter *match_end,
- const gchar *replace,
- gint replace_length)
+gtk_source_buffer_search_replace (GtkSourceBuffer *buffer,
+ const GtkTextIter *match_start,
+ const GtkTextIter *match_end,
+ const gchar *replace,
+ gint replace_length)
{
g_return_val_if_fail (GTK_SOURCE_IS_BUFFER (buffer), FALSE);
diff --git a/gtksourceview/gtksourcebuffer.h b/gtksourceview/gtksourcebuffer.h
index c9a39a7..df0e7d2 100644
--- a/gtksourceview/gtksourcebuffer.h
+++ b/gtksourceview/gtksourcebuffer.h
@@ -232,7 +232,7 @@ gboolean gtk_source_buffer_backward_search_finish
GtkTextIter *match_end,
GError **error);
-gboolean gtk_source_buffer_replace_search_match (GtkSourceBuffer *buffer,
+gboolean gtk_source_buffer_search_replace (GtkSourceBuffer *buffer,
const GtkTextIter *match_start,
const GtkTextIter *match_end,
const gchar *replace,
diff --git a/tests/test-search-ui.c b/tests/test-search-ui.c
index 91398bd..f3a5a44 100644
--- a/tests/test-search-ui.c
+++ b/tests/test-search-ui.c
@@ -159,11 +159,11 @@ static void
on_replace_cb (GtkButton *button,
ReplaceWidgets *widgets)
{
- gtk_source_buffer_replace_search_match (widgets->buffer,
- NULL,
- NULL,
- gtk_entry_get_text (widgets->replace_entry),
- -1);
+ gtk_source_buffer_search_replace (widgets->buffer,
+ NULL,
+ NULL,
+ gtk_entry_get_text (widgets->replace_entry),
+ -1);
gtk_source_buffer_forward_search_async (widgets->buffer,
NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]