[gtksourceview/wip/search: 15/36] test-search-ui: simplify forward/backward search



commit 2193d20d4d850b19820512709ab78509495fd437
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Jul 1 15:12:16 2013 +0200

    test-search-ui: simplify forward/backward search

 tests/test-search-ui.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/tests/test-search-ui.c b/tests/test-search-ui.c
index 7c4de4f..888317b 100644
--- a/tests/test-search-ui.c
+++ b/tests/test-search-ui.c
@@ -109,12 +109,9 @@ on_button_previous_clicked_cb (GtkButton   *button,
                               GtkTextView *view)
 {
        GtkTextBuffer *buffer = gtk_text_view_get_buffer (view);
-       GtkTextIter iter;
-
-       gtk_text_buffer_get_selection_bounds (buffer, &iter, NULL);
 
        gtk_source_buffer_backward_search_async (GTK_SOURCE_BUFFER (buffer),
-                                                &iter,
+                                                NULL,
                                                 NULL,
                                                 (GAsyncReadyCallback)backward_search_finished,
                                                 view);
@@ -143,12 +140,9 @@ on_button_next_clicked_cb (GtkButton   *button,
                           GtkTextView *view)
 {
        GtkTextBuffer *buffer = gtk_text_view_get_buffer (view);
-       GtkTextIter iter;
-
-       gtk_text_buffer_get_selection_bounds (buffer, NULL, &iter);
 
        gtk_source_buffer_forward_search_async (GTK_SOURCE_BUFFER (buffer),
-                                               &iter,
+                                               NULL,
                                                NULL,
                                                (GAsyncReadyCallback)forward_search_finished,
                                                view);



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