forked from AuroraMiddleware/gtk
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:
parent
41312f2c99
commit
738211828b
@ -1,5 +1,11 @@
|
|||||||
2004-10-30 Matthias Clasen <mclasen@redhat.com>
|
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,
|
* tests/testtext.c: Add a "Select All" menuitem. (#156792,
|
||||||
Paolo Borelli)
|
Paolo Borelli)
|
||||||
|
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
2004-10-30 Matthias Clasen <mclasen@redhat.com>
|
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,
|
* tests/testtext.c: Add a "Select All" menuitem. (#156792,
|
||||||
Paolo Borelli)
|
Paolo Borelli)
|
||||||
|
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
2004-10-30 Matthias Clasen <mclasen@redhat.com>
|
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,
|
* tests/testtext.c: Add a "Select All" menuitem. (#156792,
|
||||||
Paolo Borelli)
|
Paolo Borelli)
|
||||||
|
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
2004-10-30 Matthias Clasen <mclasen@redhat.com>
|
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,
|
* tests/testtext.c: Add a "Select All" menuitem. (#156792,
|
||||||
Paolo Borelli)
|
Paolo Borelli)
|
||||||
|
|
||||||
|
@ -2848,6 +2848,8 @@ _gtk_text_btree_select_range (GtkTextBTree *tree,
|
|||||||
"insert", FALSE, ins, TRUE, FALSE);
|
"insert", FALSE, ins, TRUE, FALSE);
|
||||||
real_set_mark (tree, tree->selection_bound_mark,
|
real_set_mark (tree, tree->selection_bound_mark,
|
||||||
"selection_bound", FALSE, bound, TRUE, FALSE);
|
"selection_bound", FALSE, bound, TRUE, FALSE);
|
||||||
|
|
||||||
|
redisplay_region (tree, ins, bound);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -6774,8 +6774,7 @@ gtk_text_view_select_all (GtkWidget *widget,
|
|||||||
if (select)
|
if (select)
|
||||||
{
|
{
|
||||||
gtk_text_buffer_get_bounds (buffer, &start_iter, &end_iter);
|
gtk_text_buffer_get_bounds (buffer, &start_iter, &end_iter);
|
||||||
gtk_text_buffer_move_mark_by_name (buffer, "insert", &start_iter);
|
gtk_text_buffer_select_range (buffer, &start_iter, &end_iter);
|
||||||
gtk_text_buffer_move_mark_by_name (buffer, "selection_bound", &end_iter);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user