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().
This commit is contained in:
Matthias Clasen 2004-10-30 04:24:55 +00:00 committed by Matthias Clasen
parent 41312f2c99
commit 738211828b
6 changed files with 27 additions and 2 deletions

View File

@ -1,5 +1,11 @@
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)

View File

@ -1,5 +1,11 @@
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)

View File

@ -1,5 +1,11 @@
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)

View File

@ -1,5 +1,11 @@
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)

View File

@ -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);
}

View File

@ -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
{