After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 71427 - scrolling gtktextview to the end
scrolling gtktextview to the end
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
1.3.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2002-02-13 23:19 UTC by Dennis Björklund
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Testcase (2.29 KB, text/plain)
2002-02-13 23:20 UTC, Dennis Björklund
Details

Description Dennis Björklund 2002-02-13 23:19:07 UTC
I add lines at the end of the textview and would like it to scroll down to 
the bottom so I can see the new lines. I can't get it to work. When it have
scrolled there are still some non-visible lines in the end.

I'll attach a test program that shows the problem here. The text that is
added to the textbuffer have to be long for the problem to show up. So I
took part of the text that my application tried to show when I saw the
failure. It's not just the number of lines in the text that is added that
matters, because if I just add 20 one-character lines, then I don't see the
problem. 

As far as I can tell from the docs it should work when one use a text-mark
to do this, while gtk_text_view_scroll_to_iter () is not guaranteed to work.
Comment 1 Dennis Björklund 2002-02-13 23:20:16 UTC
Created attachment 6711 [details]
Testcase
Comment 2 Havoc Pennington 2002-02-14 00:06:43 UTC
Fixed very quickly, due to the nice test case.