From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: XPM via Lisp in the toolbar Date: 18 Nov 2002 19:38:33 +0000 Sender: emacs-devel-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037650602 20891 80.91.224.249 (18 Nov 2002 20:16:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 18 Nov 2002 20:16:42 +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 18DsK1-0005Qi-00 for ; Mon, 18 Nov 2002 21:16:41 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18DsMO-000807-00 for ; Mon, 18 Nov 2002 21:19:08 +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 18DsIm-0003te-00; Mon, 18 Nov 2002 15:15:24 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18Ds3u-00088Z-00 for emacs-devel@gnu.org; Mon, 18 Nov 2002 15:00:02 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18Ds3p-00086d-00 for emacs-devel@gnu.org; Mon, 18 Nov 2002 15:00:00 -0500 Original-Received: from tungsten.btinternet.com ([194.73.73.81]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18Drk1-0002ls-00 for emacs-devel@gnu.org; Mon, 18 Nov 2002 14:39:29 -0500 Original-Received: from host213-123-35-131.in-addr.btopenworld.com ([213.123.35.131] helo=nyaumo.btinternet.com) by tungsten.btinternet.com with esmtp (Exim 3.22 #15) id 18Drje-0005N9-00; Mon, 18 Nov 2002 19:39:06 +0000 Original-Received: from nyaumo.btinternet.com (nyaumo.btinternet.com [127.0.0.1]) by nyaumo.btinternet.com (Postfix) with ESMTP id 4E78B4AAB7; Mon, 18 Nov 2002 19:38:34 +0000 (GMT) Original-To: Oliver Scholz In-Reply-To: Original-Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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:9529 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9529 Oliver Scholz writes: > The image mask seems to be supported only for `:mask 'heuristic'. This > determines the image mask by looking at the four corners of the > image. This is o.k. for almost any icon in the tool bar. But to get > its job done correctly in the general case, xpm.el needs to specify a > certain colour as the image mask, like: `:mask '(heuristic (0 0 > 0))'. This is a bug, which I found last night. I will check in the fix shortly. But shouldn't xpm.el use a monochrome image for the mask? I'm not sure exactly how the heuristic algorithm works, but it would seem there is a danger of confusing transparency with real black. > Another thing is, that it seems that the :ascent attribute does not > work; gamegrid.el needs to specify `:ascent 'center' for images. I was wondering what was preventing gamegrid from working. Thanks.