From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Gtk scrollbar: thumb too short Date: Wed, 26 Mar 2003 22:29:27 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20030325193739.ZGIN3924.fep01-svc.swip.net@gaffa.gaia.swipnet.se> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1048735955 8905 80.91.224.249 (27 Mar 2003 03:32:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 27 Mar 2003 03:32:35 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Mar 27 04:32:33 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 18yO81-0002JV-00 for ; Thu, 27 Mar 2003 04:32:33 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18yO9i-0001Zg-00 for ; Thu, 27 Mar 2003 04:34:18 +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 18yO6M-0001rG-05 for emacs-devel@quimby.gnus.org; Wed, 26 Mar 2003 22:30:50 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18yO5R-0000o8-00 for emacs-devel@gnu.org; Wed, 26 Mar 2003 22:29:53 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18yO58-0007zk-00 for emacs-devel@gnu.org; Wed, 26 Mar 2003 22:29:37 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.10.13) id 18yO51-0007pw-00 for emacs-devel@gnu.org; Wed, 26 Mar 2003 22:29:27 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 18yO51-0007OS-00; Wed, 26 Mar 2003 22:29:27 -0500 Original-To: "Jan D." In-reply-to: <20030325193739.ZGIN3924.fep01-svc.swip.net@gaffa.gaia.swipnet.se> (jan.h.d@swipnet.se) Original-cc: kai.grossjohann@uni-duisburg.de Original-cc: otaylor@redhat.com 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:12649 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12649 > I understand why the scrollbar thumb is shorter than I think it > should be: to allow for placing the last line of the buffer in the > top line of the window. > > But still, I'm not so happy with the current look of the scrollbar. > It confuses me quite a bit. Is there no way to make the thumb extend > to the bottom of the scrollbar area when end of buffer is visible, and > yet to also allow scrolling further down so that the last line of the > buffer can be moved to the top of the window? Not really. The code in Emacs does not specify the length of the thumb, GTK calculates it. Emacs tells GTK how big the buffer is, how big a page is and where we are in the buffer. What happens if the app specifies a position that is less than one page away from the end? Is that considered invalid? My suggestion is to display a thumb that rises from the bottom of the scroll bar, but is shorter than normal, as if the bottom of the thumb were hidden beyond the end of the scroll bar. Others may think of a better way to indicate this situation. When GTK decides that the thumb extends to the bottom it will not emit events for anymore downwards motion with the mouse, only upwards. Perhaps GTK should have an option so the app can let the thumb move further down. What do people think of that?