diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-06-24 17:42:17 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-06-24 17:42:17 +0000 |
commit | 458d71a96a998bb5563f508985beef1f0f600092 (patch) | |
tree | ffd5688e41f72dc3519597be6eda907282b1764c | |
parent | dd19f542db208a1f5c0b3c1f04aa5925b9eddc1b (diff) | |
download | gtk+-458d71a96a998bb5563f508985beef1f0f600092.tar.gz |
Make movement by paragraphs up/down symmetric. (#307055, Behnam Esfahbod)
2005-06-24 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c
(gtk_text_view_move_cursor_internal): Make movement by
paragraphs up/down symmetric. (#307055, Behnam Esfahbod)
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 2 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 2 | ||||
-rw-r--r-- | gtk/gtktextview.c | 7 |
4 files changed, 7 insertions, 6 deletions
@@ -9,6 +9,8 @@ * gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't jump to the next line if we are at the end of the line. + (gtk_text_view_move_cursor_internal): Make movement by + paragraphs up/down symmetric. (#307055, Behnam Esfahbod) 2005-06-23 Tor Lillqvist <tml@novell.com> diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 69b6089187..dcb9203627 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -9,6 +9,8 @@ * gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't jump to the next line if we are at the end of the line. + (gtk_text_view_move_cursor_internal): Make movement by + paragraphs up/down symmetric. (#307055, Behnam Esfahbod) 2005-06-23 Tor Lillqvist <tml@novell.com> diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 69b6089187..dcb9203627 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -9,6 +9,8 @@ * gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't jump to the next line if we are at the end of the line. + (gtk_text_view_move_cursor_internal): Make movement by + paragraphs up/down symmetric. (#307055, Behnam Esfahbod) 2005-06-23 Tor Lillqvist <tml@novell.com> diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index e22913cf87..2a11b9ef91 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -4752,8 +4752,6 @@ gtk_text_view_move_cursor_internal (GtkTextView *text_view, break; case GTK_MOVEMENT_PARAGRAPHS: - g_print ("move paragraphs: %d %d\n", - count, gtk_text_iter_get_line_offset (&newplace)); if (count > 0) { if (!gtk_text_iter_ends_line (&newplace)) @@ -4767,10 +4765,7 @@ gtk_text_view_move_cursor_internal (GtkTextView *text_view, else if (count < 0) { if (gtk_text_iter_get_line_offset (&newplace) > 0) - { - gtk_text_iter_set_line_offset (&newplace, 0); - ++count; - } + gtk_text_iter_set_line_offset (&newplace, 0); gtk_text_iter_forward_visible_lines (&newplace, count); gtk_text_iter_set_line_offset (&newplace, 0); } |