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 version getting closer Date: Fri, 22 Nov 2002 16:00:35 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200211071936.gA7JaBMU001860@stubby.bodenonline.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1037999754 12252 80.91.224.249 (22 Nov 2002 21:15:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 22 Nov 2002 21:15:54 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18FL9U-0003BN-00 for ; Fri, 22 Nov 2002 22:15:52 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18FLDo-00027Z-00 for ; Fri, 22 Nov 2002 22:20:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18FKw1-0002rX-00; Fri, 22 Nov 2002 16:01:57 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18FKuj-0001d5-00 for emacs-devel@gnu.org; Fri, 22 Nov 2002 16:00:37 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18FKuh-0001Xb-00 for emacs-devel@gnu.org; Fri, 22 Nov 2002 16:00:36 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18FKuh-0001X9-00 for emacs-devel@gnu.org; Fri, 22 Nov 2002 16:00:35 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 18FKuh-0007DI-00; Fri, 22 Nov 2002 16:00:35 -0500 Original-To: bob@rattlesnake.com In-reply-to: (bob@rattlesnake.com) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9624 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9624 way, since the pointer usually points upwards. So my suggestion would be to default to (setq tooltip-x-offset 0) (setq tooltip-y-offset 40) Could others please try this and comment? Would this be an improvement? Should we use -40 instead of 40? Do people want to implement smarter methods of preventing the tooltip from hiding the menu item? I don't know what people would like. The best value depends both on a person's screen and on the font they are using. Perhaps instead of using fixed values specified by these variables it could calculate the values based on the size of the menu item. I think the right thing is to decide the tooltip X/Y offset according to the size and position of the rectangle area that activates the tooltip, not according to the mouse position. Then we can make tooltip never overlap with the rectangle area, for instance, by aligning the bottom-left corner of the tooltip with 5/-5 offset from the top-left corder of the rectangle area will be good. Yes, exactly. The question is, how hard is that to implement given the toolkits as they are?