gtk/gtktextview.c Add support for Ctrl+Up/Down arrow to move cursor to
* gtk/gtktextview.c Add support for Ctrl+Up/Down arrow to move cursor to beginning of previous/next paragraph. If within a paragraph cursor moves to beginning of that paragraph.
This commit is contained in:
parent
19fcc6be6b
commit
15a544def8
@ -1,3 +1,10 @@
|
||||
2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
|
||||
|
||||
* gtk/gtktextview.c
|
||||
Add support for Ctrl+Up/Down arrow to move cursor to beginning
|
||||
of previous/next paragraph. If within a paragraph cursor moves to
|
||||
beginning of that paragraph.
|
||||
|
||||
2001-09-12 Jakub Steiner <jimmac@ximian.com>
|
||||
|
||||
* gtk/stock-icons/dialog_question.png: replacing the shaky
|
||||
|
@ -1,3 +1,10 @@
|
||||
2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
|
||||
|
||||
* gtk/gtktextview.c
|
||||
Add support for Ctrl+Up/Down arrow to move cursor to beginning
|
||||
of previous/next paragraph. If within a paragraph cursor moves to
|
||||
beginning of that paragraph.
|
||||
|
||||
2001-09-12 Jakub Steiner <jimmac@ximian.com>
|
||||
|
||||
* gtk/stock-icons/dialog_question.png: replacing the shaky
|
||||
|
@ -1,3 +1,10 @@
|
||||
2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
|
||||
|
||||
* gtk/gtktextview.c
|
||||
Add support for Ctrl+Up/Down arrow to move cursor to beginning
|
||||
of previous/next paragraph. If within a paragraph cursor moves to
|
||||
beginning of that paragraph.
|
||||
|
||||
2001-09-12 Jakub Steiner <jimmac@ximian.com>
|
||||
|
||||
* gtk/stock-icons/dialog_question.png: replacing the shaky
|
||||
|
@ -1,3 +1,10 @@
|
||||
2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
|
||||
|
||||
* gtk/gtktextview.c
|
||||
Add support for Ctrl+Up/Down arrow to move cursor to beginning
|
||||
of previous/next paragraph. If within a paragraph cursor moves to
|
||||
beginning of that paragraph.
|
||||
|
||||
2001-09-12 Jakub Steiner <jimmac@ximian.com>
|
||||
|
||||
* gtk/stock-icons/dialog_question.png: replacing the shaky
|
||||
|
@ -1,3 +1,10 @@
|
||||
2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
|
||||
|
||||
* gtk/gtktextview.c
|
||||
Add support for Ctrl+Up/Down arrow to move cursor to beginning
|
||||
of previous/next paragraph. If within a paragraph cursor moves to
|
||||
beginning of that paragraph.
|
||||
|
||||
2001-09-12 Jakub Steiner <jimmac@ximian.com>
|
||||
|
||||
* gtk/stock-icons/dialog_question.png: replacing the shaky
|
||||
|
@ -1,3 +1,10 @@
|
||||
2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
|
||||
|
||||
* gtk/gtktextview.c
|
||||
Add support for Ctrl+Up/Down arrow to move cursor to beginning
|
||||
of previous/next paragraph. If within a paragraph cursor moves to
|
||||
beginning of that paragraph.
|
||||
|
||||
2001-09-12 Jakub Steiner <jimmac@ximian.com>
|
||||
|
||||
* gtk/stock-icons/dialog_question.png: replacing the shaky
|
||||
|
@ -1,3 +1,10 @@
|
||||
2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
|
||||
|
||||
* gtk/gtktextview.c
|
||||
Add support for Ctrl+Up/Down arrow to move cursor to beginning
|
||||
of previous/next paragraph. If within a paragraph cursor moves to
|
||||
beginning of that paragraph.
|
||||
|
||||
2001-09-12 Jakub Steiner <jimmac@ximian.com>
|
||||
|
||||
* gtk/stock-icons/dialog_question.png: replacing the shaky
|
||||
|
@ -763,6 +763,18 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
|
||||
add_move_binding (binding_set, GDK_n, GDK_CONTROL_MASK,
|
||||
GTK_MOVEMENT_DISPLAY_LINES, 1);
|
||||
|
||||
add_move_binding (binding_set, GDK_Up, GDK_CONTROL_MASK,
|
||||
GTK_MOVEMENT_PARAGRAPHS, -1);
|
||||
|
||||
add_move_binding (binding_set, GDK_KP_Up, GDK_CONTROL_MASK,
|
||||
GTK_MOVEMENT_PARAGRAPHS, -1);
|
||||
|
||||
add_move_binding (binding_set, GDK_Down, GDK_CONTROL_MASK,
|
||||
GTK_MOVEMENT_PARAGRAPHS, 1);
|
||||
|
||||
add_move_binding (binding_set, GDK_KP_Down, GDK_CONTROL_MASK,
|
||||
GTK_MOVEMENT_PARAGRAPHS, 1);
|
||||
|
||||
add_move_binding (binding_set, GDK_a, GDK_CONTROL_MASK,
|
||||
GTK_MOVEMENT_PARAGRAPH_ENDS, -1);
|
||||
|
||||
@ -3914,9 +3926,8 @@ gtk_text_view_move_cursor (GtkTextView *text_view,
|
||||
break;
|
||||
|
||||
case GTK_MOVEMENT_PARAGRAPHS:
|
||||
/* This should almost certainly instead be doing the parallel thing to WORD */
|
||||
/* gtk_text_iter_down_lines (&newplace, count); */
|
||||
/* FIXME */
|
||||
gtk_text_iter_forward_lines (&newplace, count);
|
||||
gtk_text_iter_set_line_offset (&newplace, 0);
|
||||
break;
|
||||
|
||||
case GTK_MOVEMENT_PARAGRAPH_ENDS:
|
||||
|
Loading…
Reference in New Issue
Block a user