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:

committed by
Matthias Clasen

parent
b5b9fea0f7
commit
315edfcce4
11
ChangeLog
11
ChangeLog
@ -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>
|
2003-01-04 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
|
* gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
|
||||||
|
@ -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>
|
2003-01-04 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
|
* gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
|
||||||
|
@ -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>
|
2003-01-04 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
|
* gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
|
||||||
|
@ -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>
|
2003-01-04 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
|
* gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
|
||||||
|
@ -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>
|
2003-01-04 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
|
* gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
|
||||||
|
@ -5083,7 +5083,10 @@ _gtk_text_btree_get_iter_at_first_toggle (GtkTextBTree *tree,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
iter_init_from_byte_offset (iter, tree, line, 0);
|
iter_init_from_byte_offset (iter, tree, line, 0);
|
||||||
|
|
||||||
|
if (!gtk_text_iter_toggles_tag (iter, tag))
|
||||||
gtk_text_iter_forward_to_tag_toggle (iter, tag);
|
gtk_text_iter_forward_to_tag_toggle (iter, tag);
|
||||||
|
|
||||||
check_invariants (iter);
|
check_invariants (iter);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -4609,6 +4609,8 @@ gtk_text_view_move_cursor_internal (GtkTextView *text_view,
|
|||||||
gtk_text_iter_forward_to_line_end (&newplace);
|
gtk_text_iter_forward_to_line_end (&newplace);
|
||||||
--count;
|
--count;
|
||||||
}
|
}
|
||||||
|
gtk_text_iter_forward_lines (&newplace, count);
|
||||||
|
gtk_text_iter_forward_to_line_end (&newplace);
|
||||||
}
|
}
|
||||||
else if (count < 0)
|
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);
|
gtk_text_iter_set_line_offset (&newplace, 0);
|
||||||
++count;
|
++count;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (count != 0)
|
|
||||||
{
|
|
||||||
gtk_text_iter_forward_lines (&newplace, count);
|
gtk_text_iter_forward_lines (&newplace, count);
|
||||||
gtk_text_iter_set_line_offset (&newplace, 0);
|
gtk_text_iter_set_line_offset (&newplace, 0);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user