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 589382 - jitter when clicking on gtksourceview component
jitter when clicking on gtksourceview component
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
2.27.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2009-07-22 14:27 UTC by Pedro Villavicencio
Modified: 2009-09-14 18:51 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28


Attachments
patch (2.36 KB, patch)
2009-09-13 15:45 UTC, Paolo Borelli
none Details | Review

Description Pedro Villavicencio 2009-07-22 14:27:30 UTC
this report has been filed here:

https://bugs.edge.launchpad.net/ubuntu/+source/gedit/+bug/402967

"The bug creates an ugly jitter when the gtksourceview component refreshes itself (note: this is what appears to happen). To reproduce the behaviour, one must have gedit open any sort of text file and have the window of some other application open. With focus on the other window, refocus on the gedit window and highlight some text. The text jitters slightly to the right. This now happens whenever you release a click on the source view widget. This behaviour stops as soon as the mouse passes over any other widget in the gedit window (file tab, toolbar, menubar)."

"I'm not able to reproduce this with test-widget of the gtksourceview package only with gedit"

Thanks,
Comment 1 Alexander Hunziker 2009-08-03 12:03:34 UTC
I have the same problem. Let me add that the bug is font specific for me. It does happen with the Droid fonts, but not with the Liberation fonts.
Comment 2 Dominique Leuenberger 2009-09-01 19:50:44 UTC
I see the same jitter in gedit. Best way for me to reproduce:

open gedit, enable option to show line numbers. Load a src file, a few hundred lines. Go to first line then scroll down with the cursor keys, line by line... about every 3rd line or so the line number bar get's a little bit wider then just shrinks down again. It's not fixed on line numbers: my moving a bit up and down the cursor the lines can shift.

I tried with different font settings: my default font in gedit is 'Use system fixed width font (monospace 10)'
Comment 3 Anthony 2009-09-11 15:20:40 UTC
This is interesting, I was able to reproduce this problem. I didn't notice it until I had a few lines typed out in the text editor, but I definitely notice it.
Comment 4 Paolo Borelli 2009-09-11 15:24:08 UTC
Are you all guys using ubuntu? I was wondering if this could be due to some distro specific patch...
Comment 5 Stuart Marks 2009-09-11 15:30:41 UTC
Testing on Ubuntu 9.10 and gedit 2.27.6

I can confirm as well. What I did to reproduce is open a multi-line text file and double click around to select different words/lines. The jitter becomes clearly noticeable.
Comment 6 isaac bowen 2009-09-11 15:37:40 UTC
Confirmed on Ubuntu 9.10, gedit 2.27.6. Got it to appear most consistently when the window loses focus, and then catches it again by clicking on the text area.
Comment 7 Dominique Leuenberger 2009-09-11 15:48:27 UTC
No ubuntu here. I'm running openSUSE 11.2 M7 at the moment, but same issue (as reported in comment #2)
Comment 8 Carey Underwood 2009-09-11 16:05:20 UTC
Issue occurs under Ubuntu's Karmic.  Video driver and compositing seems unrelated (can be duplicated under intl, nvidia, and radeon, and with compiz or metacity).

karmic's fontconfig is currently the same version as jaunty's (which doesn't exhibit the problem), and so seems to be unrelated.
Comment 9 Paolo Borelli 2009-09-11 16:19:52 UTC
CC'ing behdad since he said he may have an idea what this is about...
Comment 10 Ignacio Casal Quinteiro (nacho) 2009-09-12 23:24:14 UTC
I can reproduce this in windows.
Comment 11 Paolo Borelli 2009-09-13 15:45:40 UTC
Created attachment 143108 [details] [review]
patch

Ok, we finally managed to reproduce and understood the problem.

This patch should fix the jittering and also adds a comment about what is going on with that code.

If anyone could test and verify that things work properly, it would be very appreciated.
Comment 12 Paolo Borelli 2009-09-14 18:51:31 UTC
I pushed the patch to git after some testing. Please reopen if you still see issue in the next version.

Thanks everybody for their help tracking this down.