mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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
This commit is contained in:
parent
9b185ed750
commit
d07cd9f865
@ -1,3 +1,10 @@
|
||||
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):
|
||||
|
@ -1,3 +1,10 @@
|
||||
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):
|
||||
|
@ -1,3 +1,10 @@
|
||||
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):
|
||||
|
@ -1,3 +1,10 @@
|
||||
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):
|
||||
|
@ -1,3 +1,10 @@
|
||||
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):
|
||||
|
@ -1,3 +1,10 @@
|
||||
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):
|
||||
|
@ -1,3 +1,10 @@
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user