[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs GTK scroll-bar flickering
From: |
Miles Bader |
Subject: |
Re: Emacs GTK scroll-bar flickering |
Date: |
19 Mar 2003 10:26:16 +0900 |
address@hidden (Kim F. Storm) writes:
> Maybe the size of the thumb changes more often with emacs. IIRC,
> emacs calculates the thumb size based on the #(characters in the
> window) / #(characters in the file) ratio, so just dragging the
> cursor may change the size of the thumb.
>
> If GTK repaints the entire scroll bar when the thumb size changes,
> maybe that could explain the flicker.
I don't think that's it, or at least not entirely it, for several
reasons:
(1) If I create a file containing a large number of identical lines,
then scrolling in emacs shouldn't change the thumb size, as long as
I don't get near the end of the file. Nevertheless, dragging the
scrollbar in emacs flickers noticeably. My test file, BTW is 68
lines of the following:
alskdfjlaskdjfalskdjfalskfjlaskdfjalskfjdaskldfj
(2) Gedit's scrollbar doesn't flicker _at all_ when the thumb-size
changes. I tested this by taking the above file, copying a bunch
of lines from it, and then pasting into the end of the gedit
buffer, while carefully watching the scrollbar end-buttons (which
are one of the most obvious `flicker points' in emacs); the result
was that the thumb shrank quite bit with a few pastes, but the
scrollbar update was rock-stable, no flicker at all.
It could be, of course, that gedit has some sort of additional
graphic optimization to prevent flicker since it uses GTK for all
its display.
-Miles
--
Ich bin ein Virus. Mach' mit und kopiere mich in Deine .signature.
- Re: Emacs GTK scroll-bar flickering, (continued)
- Re: Emacs GTK scroll-bar flickering, Miles Bader, 2003/03/18
- Re: Emacs GTK scroll-bar flickering, Luc Teirlinck, 2003/03/18
- Re: Emacs GTK scroll-bar flickering, Miles Bader, 2003/03/18
- Re: Emacs GTK scroll-bar flickering, Miles Bader, 2003/03/18
- Re: Emacs GTK scroll-bar flickering, Richard Stallman, 2003/03/19
- Re: Emacs GTK scroll-bar flickering, Jan D., 2003/03/18
- Re: Emacs GTK scroll-bar flickering, Kevin Rodgers, 2003/03/18
- Re: Emacs GTK scroll-bar flickering, Jan D., 2003/03/19
- Re: Emacs GTK scroll-bar flickering, Miles Bader, 2003/03/18
- Re: Emacs GTK scroll-bar flickering, Kim F. Storm, 2003/03/18
- Re: Emacs GTK scroll-bar flickering,
Miles Bader <=
- Re: Emacs GTK scroll-bar flickering, Jan D., 2003/03/19
- Re: Emacs GTK scroll-bar flickering, Miles Bader, 2003/03/19
- Re: Emacs GTK scroll-bar flickering, Richard Stallman, 2003/03/21
- Re: Emacs GTK scroll-bar flickering, Jan D., 2003/03/26
- Re: Emacs GTK scroll-bar flickering, Miles Bader, 2003/03/26
- Re: Emacs GTK scroll-bar flickering, Miles Bader, 2003/03/27
- Re: Emacs GTK scroll-bar flickering, Richard Stallman, 2003/03/27
- Re: Emacs GTK scroll-bar flickering, Miles Bader, 2003/03/27
- Re: Emacs GTK scroll-bar flickering, Richard Stallman, 2003/03/29
- Re: Emacs GTK scroll-bar flickering, Jan D., 2003/03/27