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 75270 - Cursor hidden when scrolling horizontally
Cursor hidden when scrolling horizontally
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
2.0.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 107223 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-03-18 12:09 UTC by Arnaud Charlet
Modified: 2011-02-04 16:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.07 KB, patch)
2003-01-23 23:57 UTC, Matthias Clasen
none Details | Review

Description Arnaud Charlet 2002-03-18 12:09:20 UTC
In testtext, type a long line (e.g 11111...) so that vertical scrolling
is enabled.
You will notice that the cursor is no longer visible, which is
disturbing.

Arno, for the GtkAda team
Comment 1 Arnaud Charlet 2002-03-18 12:58:23 UTC
I meant horizontal scrolling, not vertical.

Arno
Comment 2 Owen Taylor 2002-03-30 01:31:29 UTC
Moving remaining 2.0.1 bugs to 2.0.2 milestone.
Comment 3 Matthias Clasen 2002-04-05 13:34:52 UTC
Move open bugs from milestones 2.0.[012] -- > 2.0.3, since 2.0.2 is already out.
Comment 4 Arnaud Charlet 2002-05-03 16:30:55 UTC
As an additional information, the same problem also occurs
when forcing a vertical scrolling (with enough line feeds),
the cursor also disappears if you're on the last line.

Arno
Comment 5 Owen Taylor 2002-06-14 15:30:59 UTC
Move GtkTextView 2.0.4 bugs to 2.0.5
Comment 6 Matthias Clasen 2002-11-21 19:00:38 UTC
Moving bugs from older 2.0.x milestones to 2.0.10.
Comment 7 Matthias Clasen 2003-01-23 23:54:11 UTC
Here is a patch which makes the textview leave one pixel space at the
right edge for drawing the cursor.
Comment 8 Matthias Clasen 2003-01-23 23:57:08 UTC
Created attachment 13787 [details] [review]
patch
Comment 9 Arnaud Charlet 2003-01-24 16:50:40 UTC
I don't know if the patch is "correct", but it certainly does the job,
at least in my testings.

Arno
Comment 10 Owen Taylor 2003-01-24 21:27:12 UTC
Seems plausible to me that the problem might be this
simple.

In some cases, more than 1 pixel of space is needed -
see _gtk_draw_insertion_cursor().
Comment 11 Matthias Clasen 2003-01-25 00:07:10 UTC
Yes, but 1 pixel will at least allow some cursor indication to be
drawn. Do you think we should duplicate the computation of stem_width
from gtk_draw_insertion_cursor here ?
Comment 12 Matthias Clasen 2003-01-26 20:00:49 UTC
I tried this patch with a larger cursor-aspect-ratio now and it
doesn't look too bad - the cursor thickness changes much more
drastically when inserting the first character in an empty line.
Comment 13 Havoc Pennington 2003-02-20 19:07:04 UTC
Looks good to me to commit. 
Comment 14 Matthias Clasen 2003-02-20 19:45:34 UTC
Committed to both branches.
Comment 15 Frederic Crozat 2003-02-28 15:51:21 UTC
*** Bug 107223 has been marked as a duplicate of this bug. ***