Commit d07cd9f8 authored by Havoc Pennington's avatar Havoc Pennington Committed by Havoc Pennington
Browse files

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
parent 9b185ed7
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
2001-12-31 Havoc Pennington <hp@pobox.com>
 
* gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
......
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
2001-12-31 Havoc Pennington <hp@pobox.com>
 
* gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
......
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
2001-12-31 Havoc Pennington <hp@pobox.com>
 
* gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
......
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
2001-12-31 Havoc Pennington <hp@pobox.com>
 
* gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
......
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
2001-12-31 Havoc Pennington <hp@pobox.com>
 
* gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
......
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
2001-12-31 Havoc Pennington <hp@pobox.com>
 
* gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
......
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
2001-12-31 Havoc Pennington <hp@pobox.com>
 
* gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
......
......@@ -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);
......
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