Commit fad385ba authored by James Livingston's avatar James Livingston

disable search highlighting during replace all, as it can be done at the

* gedit/gedit-document.c: (gedit_document_replace_all): disable
  search highlighting during replace all, as it can be done at the end
  and can be slow.
parent 72680dbf
2006-02-08 James Livingston <jrl@ids.org.au>
* gedit/gedit-document.c: (gedit_document_replace_all): disable
search highlighting during replace all, as it can be done at the end
and can be slow.
2006-02-08 Paolo Borelli <pborelli@katamail.com>
* plugins/externaltools/tools/manager.py: properly clear the fields
......
......@@ -1537,7 +1537,8 @@ gedit_document_replace_all (GeditDocument *doc,
gchar *replace_text;
gint replace_text_len;
GtkTextBuffer *buffer;
gboolean check_brackets;
gboolean check_brackets;
gboolean search_highliting;
g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), 0);
g_return_val_if_fail (replace != NULL, 0);
......@@ -1573,6 +1574,10 @@ gedit_document_replace_all (GeditDocument *doc,
check_brackets = gtk_source_buffer_get_check_brackets (GTK_SOURCE_BUFFER (buffer));
gtk_source_buffer_set_check_brackets (GTK_SOURCE_BUFFER (buffer), FALSE);
/* and do search highliting later */
search_highliting = gedit_document_get_enable_search_highlighting (doc);
gedit_document_set_enable_search_highlighting (doc, FALSE);
gtk_text_buffer_begin_user_action (buffer);
do
......@@ -1625,6 +1630,7 @@ gedit_document_replace_all (GeditDocument *doc,
gtk_source_buffer_set_check_brackets (GTK_SOURCE_BUFFER (buffer),
check_brackets);
gedit_document_set_enable_search_highlighting (doc, search_highliting);
g_free (search_text);
g_free (replace_text);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment