diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-08-16 05:06:31 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-08-16 05:06:31 +0000 |
commit | 44dc0b8acf2491bcb26621082fab8350021ad86c (patch) | |
tree | 4a5fd07acfe861904a4159304640c0e1517678b0 /gtk/gtktextiter.c | |
parent | 98987464d58890b803af45dc7accdc631148a58a (diff) | |
download | gtk+-44dc0b8acf2491bcb26621082fab8350021ad86c.tar.gz |
Count from the beginning of the line, not from the current position.
Mon Aug 16 01:03:08 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset):
(gtk_text_iter_set_visible_line_index): Count from the
beginning of the line, not from the current position. (#150101,
Torsten Schoenfeld)
Diffstat (limited to 'gtk/gtktextiter.c')
-rw-r--r-- | gtk/gtktextiter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtktextiter.c b/gtk/gtktextiter.c index 771d18d6d7..403ed711d7 100644 --- a/gtk/gtktextiter.c +++ b/gtk/gtktextiter.c @@ -3714,6 +3714,8 @@ gtk_text_iter_set_visible_line_offset (GtkTextIter *iter, g_return_if_fail (iter != NULL); + gtk_text_iter_set_line_offset (iter, 0); + pos = *iter; /* For now we use a ludicrously slow implementation */ @@ -3760,6 +3762,8 @@ gtk_text_iter_set_visible_line_index (GtkTextIter *iter, g_return_if_fail (iter != NULL); + gtk_text_iter_set_line_offset (iter, 0); + pos = *iter; /* For now we use a ludicrously slow implementation */ |