Make C-Down step through the sequence of paragraph ends (old behaviour

2003-01-05  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
	C-Down step through the sequence of paragraph ends (old behaviour
	included paragraph starts).  (#80340, patch by Narayana Pattipati)

	* gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
 	Check for a tag toggle at the start iterator before calling
 	gtk_text_iter_forward_to_tag_toggle().  (#102090, patch by Daniel
	Elstner)
This commit is contained in:
Matthias Clasen 2003-01-04 23:28:06 +00:00 committed by Matthias Clasen
parent b5b9fea0f7
commit 315edfcce4
7 changed files with 61 additions and 5 deletions

View File

@ -1,3 +1,14 @@
2003-01-05 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
C-Down step through the sequence of paragraph ends (old behaviour
included paragraph starts). (#80340, patch by Narayana Pattipati)
* gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
Check for a tag toggle at the start iterator before calling
gtk_text_iter_forward_to_tag_toggle(). (#102090, patch by Daniel
Elstner)
2003-01-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/

View File

@ -1,3 +1,14 @@
2003-01-05 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
C-Down step through the sequence of paragraph ends (old behaviour
included paragraph starts). (#80340, patch by Narayana Pattipati)
* gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
Check for a tag toggle at the start iterator before calling
gtk_text_iter_forward_to_tag_toggle(). (#102090, patch by Daniel
Elstner)
2003-01-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/

View File

@ -1,3 +1,14 @@
2003-01-05 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
C-Down step through the sequence of paragraph ends (old behaviour
included paragraph starts). (#80340, patch by Narayana Pattipati)
* gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
Check for a tag toggle at the start iterator before calling
gtk_text_iter_forward_to_tag_toggle(). (#102090, patch by Daniel
Elstner)
2003-01-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/

View File

@ -1,3 +1,14 @@
2003-01-05 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
C-Down step through the sequence of paragraph ends (old behaviour
included paragraph starts). (#80340, patch by Narayana Pattipati)
* gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
Check for a tag toggle at the start iterator before calling
gtk_text_iter_forward_to_tag_toggle(). (#102090, patch by Daniel
Elstner)
2003-01-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/

View File

@ -1,3 +1,14 @@
2003-01-05 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
C-Down step through the sequence of paragraph ends (old behaviour
included paragraph starts). (#80340, patch by Narayana Pattipati)
* gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
Check for a tag toggle at the start iterator before calling
gtk_text_iter_forward_to_tag_toggle(). (#102090, patch by Daniel
Elstner)
2003-01-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/

View File

@ -5083,7 +5083,10 @@ _gtk_text_btree_get_iter_at_first_toggle (GtkTextBTree *tree,
else
{
iter_init_from_byte_offset (iter, tree, line, 0);
gtk_text_iter_forward_to_tag_toggle (iter, tag);
if (!gtk_text_iter_toggles_tag (iter, tag))
gtk_text_iter_forward_to_tag_toggle (iter, tag);
check_invariants (iter);
return TRUE;
}

View File

@ -4609,6 +4609,8 @@ gtk_text_view_move_cursor_internal (GtkTextView *text_view,
gtk_text_iter_forward_to_line_end (&newplace);
--count;
}
gtk_text_iter_forward_lines (&newplace, count);
gtk_text_iter_forward_to_line_end (&newplace);
}
else if (count < 0)
{
@ -4617,10 +4619,6 @@ gtk_text_view_move_cursor_internal (GtkTextView *text_view,
gtk_text_iter_set_line_offset (&newplace, 0);
++count;
}
}
if (count != 0)
{
gtk_text_iter_forward_lines (&newplace, count);
gtk_text_iter_set_line_offset (&newplace, 0);
}