From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Gtk scrollbar: thumb too short Date: Thu, 27 Mar 2003 19:41:44 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3E8345E8.4090509@swipnet.se> References: <20030325193739.ZGIN3924.fep01-svc.swip.net@gaffa.gaia.swipnet.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1048790662 7876 80.91.224.249 (27 Mar 2003 18:44:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 27 Mar 2003 18:44:22 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Mar 27 19:44:19 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 18ycMM-00022d-00 for ; Thu, 27 Mar 2003 19:44:18 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18ycOM-0001rv-00 for ; Thu, 27 Mar 2003 19:46:22 +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 18ycLC-0001qc-04 for emacs-devel@quimby.gnus.org; Thu, 27 Mar 2003 13:43:06 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18ycKW-0001bj-00 for emacs-devel@gnu.org; Thu, 27 Mar 2003 13:42:24 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18ycKA-0001Od-00 for emacs-devel@gnu.org; Thu, 27 Mar 2003 13:42:03 -0500 Original-Received: from stubby.bodenonline.com ([193.201.16.94]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ycJv-0001Cs-00; Thu, 27 Mar 2003 13:41:47 -0500 Original-Received: from swipnet.se (accessno42.bodenonline.com [193.201.16.44]) h2RJXrbL026822; Thu, 27 Mar 2003 20:33:54 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314 X-Accept-Language: en-us, en Original-To: rms@gnu.org In-Reply-To: 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:12667 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12667 Richard Stallman wrote: > > 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? Not invalid, but the position is silently changed to be a page away from the end. GTK scroll bars adjust position values to be in the interval [minimum value for the scroll bar, maximum value - one page size] > 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. As the native scroll bars do? The disadvantage is that then the thumb size in relation to the scroll bar size looses the connection of how much of the buffer you are seeing w.r.t. the size of the buffer. I don't think that is a big deal. I am quite happy with the GTK/Motif way in Emacs also. > 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? That would be nice. Jan D.