From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Emacs GTK scroll-bar flickering Date: 19 Mar 2003 10:26:16 +0900 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200303182319.h2INJ0bP024745@stubby.bodenonline.com> <20030318232802.GA19990@gnu.org> <5xr8942mg7.fsf@kfs2.cua.dk> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048037363 15453 80.91.224.249 (19 Mar 2003 01:29:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2003 01:29:23 +0000 (UTC) Cc: "Jan D." Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Mar 19 02:29:21 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18vSOP-000411-00 for ; Wed, 19 Mar 2003 02:29:21 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18vSOw-0002mw-00 for ; Wed, 19 Mar 2003 02:29:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18vSMf-0004JU-03 for emacs-devel@quimby.gnus.org; Tue, 18 Mar 2003 20:27:33 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18vSMI-00040K-00 for emacs-devel@gnu.org; Tue, 18 Mar 2003 20:27:10 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18vSM7-0003XP-00 for emacs-devel@gnu.org; Tue, 18 Mar 2003 20:27:00 -0500 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.202]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18vSM3-0003Cc-00; Tue, 18 Mar 2003 20:26:56 -0500 Original-Received: from mailgate4.nec.co.jp ([10.7.69.195])h2J1QTU23711; Wed, 19 Mar 2003 10:26:29 +0900 (JST) Original-Received: (from root@localhost) by mailgate4.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) id h2J1QSf03017; Wed, 19 Mar 2003 10:26:28 +0900 (JST) Original-Received: from edsgm01.lsi.nec.co.jp ([10.50.208.11]) by mailsv.nec.co.jp (8.11.6/3.7W-MAILSV-NEC) with ESMTP id h2J1QQq24734; Wed, 19 Mar 2003 10:26:27 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp (localhost [127.0.0.1]) KAA18050; Wed, 19 Mar 2003 10:26:26 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) with ESMTP id h2J1QHNH021158; Wed, 19 Mar 2003 10:26:21 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id E4CEB36F4; Wed, 19 Mar 2003 10:26:16 +0900 (JST) Original-To: storm@cua.dk (Kim F. Storm) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <5xr8942mg7.fsf@kfs2.cua.dk> Original-Lines: 35 Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12454 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12454 storm@cua.dk (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.