Commit 73821182 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Redisplay the new selection.

2004-10-30  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktextbtree.c (_gtk_text_btree_select_range): Redisplay
	the new selection.

	* gtk/gtktextview.c (gtk_text_view_select_all): Use
	gtk_text_buffer_select_range().
parent 41312f2c
2004-10-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_btree_select_range): Redisplay
the new selection.
* gtk/gtktextview.c (gtk_text_view_select_all): Use
gtk_text_buffer_select_range().
* tests/testtext.c: Add a "Select All" menuitem. (#156792,
Paolo Borelli)
......
2004-10-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_btree_select_range): Redisplay
the new selection.
* gtk/gtktextview.c (gtk_text_view_select_all): Use
gtk_text_buffer_select_range().
* tests/testtext.c: Add a "Select All" menuitem. (#156792,
Paolo Borelli)
......
2004-10-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_btree_select_range): Redisplay
the new selection.
* gtk/gtktextview.c (gtk_text_view_select_all): Use
gtk_text_buffer_select_range().
* tests/testtext.c: Add a "Select All" menuitem. (#156792,
Paolo Borelli)
......
2004-10-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_btree_select_range): Redisplay
the new selection.
* gtk/gtktextview.c (gtk_text_view_select_all): Use
gtk_text_buffer_select_range().
* tests/testtext.c: Add a "Select All" menuitem. (#156792,
Paolo Borelli)
......
......@@ -2848,6 +2848,8 @@ _gtk_text_btree_select_range (GtkTextBTree *tree,
"insert", FALSE, ins, TRUE, FALSE);
real_set_mark (tree, tree->selection_bound_mark,
"selection_bound", FALSE, bound, TRUE, FALSE);
redisplay_region (tree, ins, bound);
}
......
......@@ -6774,8 +6774,7 @@ gtk_text_view_select_all (GtkWidget *widget,
if (select)
{
gtk_text_buffer_get_bounds (buffer, &start_iter, &end_iter);
gtk_text_buffer_move_mark_by_name (buffer, "insert", &start_iter);
gtk_text_buffer_move_mark_by_name (buffer, "selection_bound", &end_iter);
gtk_text_buffer_select_range (buffer, &start_iter, &end_iter);
}
else
{
......
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