From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Toolbar redraw causes unwanted selection Date: Sat, 30 Dec 2006 13:20:15 -0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167513669 7397 80.91.229.12 (30 Dec 2006 21:21:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Dec 2006 21:21:09 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 30 22:21:08 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H0ldZ-0002VI-ME for ged-emacs-devel@m.gmane.org; Sat, 30 Dec 2006 22:21:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H0ldZ-0003ua-4f for ged-emacs-devel@m.gmane.org; Sat, 30 Dec 2006 16:21:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H0ldM-0003sk-CO for emacs-devel@gnu.org; Sat, 30 Dec 2006 16:20:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H0ldK-0003q9-HC for emacs-devel@gnu.org; Sat, 30 Dec 2006 16:20:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H0ldK-0003q3-Br for emacs-devel@gnu.org; Sat, 30 Dec 2006 16:20:50 -0500 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H0ldJ-0003e7-Va for emacs-devel@gnu.org; Sat, 30 Dec 2006 16:20:50 -0500 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id kBULKlsw019980 for ; Sat, 30 Dec 2006 14:20:47 -0700 Original-Received: from rcsmt250.oracle.com (rcsmt250.oracle.com [148.87.90.195]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id kBUKqUUd006639 for ; Sat, 30 Dec 2006 14:20:47 -0700 Original-Received: from dhcp-amer-csvpn-gw1-141-144-64-116.vpn.oracle.com by rcsmt250.oracle.com with ESMTP id 2326604031167513624; Sat, 30 Dec 2006 14:20:24 -0700 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 In-Reply-To: Importance: Normal X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64524 Archived-At: I said: > I currently estimate [tool-bar height] at 2 * frame-char-height * > tool-bar-lines, and that works well. (I treat a nil value as 0.) Before someone else jumps in to say that the tool-bar height is unrelated to the frame-char-height: yes, I realize that. That formula works well for some common character sizes, but it would perhaps be better to use a constant. It would be great if there were a variable or frame parameter that reflected the tool-bar height or the height of a single tool-bar line (so height would be that times `tool-bar-lines'). I imagine that such a height could be different for different toolkits etc.