diff options
author | Havoc Pennington <hp@pobox.com> | 2001-12-31 22:35:20 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-12-31 22:35:20 +0000 |
commit | d07cd9f8657a01c71a18c984dd9b9400e8479f66 (patch) | |
tree | 94884cacac3b3558fdf74af9de96b1b3a6f4e6c4 /tests | |
parent | 9b185ed750e60cf19f12e88936c70ac8594ef531 (diff) | |
download | gdk-pixbuf-d07cd9f8657a01c71a18c984dd9b9400e8479f66.tar.gz |
remove backward_char since we no longer have bogus newline
2001-12-31 Havoc Pennington <hp@pobox.com>
* tests/testtext.c (do_insert_and_scroll): remove backward_char
since we no longer have bogus newline
(dialog_response_callback): remove another backward_char horkage,
reported by Matthias Clasen #63065
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testtext.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/testtext.c b/tests/testtext.c index aaf9f9d0c..151fdd561 100644 --- a/tests/testtext.c +++ b/tests/testtext.c @@ -874,7 +874,6 @@ do_insert_and_scroll (gpointer callback_data, gtk_text_buffer_get_bounds (buffer, &start, &end); mark = gtk_text_buffer_create_mark (buffer, NULL, &end, /* right grav */ FALSE); - gtk_text_iter_backward_char (&end); gtk_text_buffer_insert (buffer, &end, "Hello this is multiple lines of text\n" "Line 1\n" "Line 2\n" @@ -1161,13 +1160,10 @@ dialog_response_callback (GtkWidget *dialog, gint response_id, gpointer data) buffer = g_object_get_data (G_OBJECT (dialog), "buffer"); gtk_text_buffer_get_bounds (buffer, &start, &end); - - /* Remove trailing newline */ - gtk_text_iter_backward_char (&end); search_string = gtk_text_iter_get_text (&start, &end); - printf ("Searching for `%s'\n", search_string); + g_print ("Searching for `%s'\n", search_string); if (response_id == RESPONSE_FORWARD) buffer_search_forward (view->buffer, search_string, view); |