From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62117 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Customizable tool bars Date: Thu, 02 Mar 2006 09:00:01 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1141257825 32118 80.91.229.2 (2 Mar 2006 00:03:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Mar 2006 00:03:45 +0000 (UTC) Original-X-From: ding-owner+m10645@lists.math.uh.edu Thu Mar 02 01:03:36 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FEbHR-0001en-1k for ding-account@gmane.org; Thu, 02 Mar 2006 01:02:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FEbHF-0007aR-00; Wed, 01 Mar 2006 18:02:41 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FEbEs-0007aL-00 for ding@lists.math.uh.edu; Wed, 01 Mar 2006 18:00:14 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FEbEp-00057G-KX for ding@lists.math.uh.edu; Wed, 01 Mar 2006 18:00:13 -0600 Original-Received: from minsk.hostforweb.net ([66.225.201.21]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FEbEo-0000yc-00 for ; Thu, 02 Mar 2006 01:00:10 +0100 Original-Received: from [205.234.212.150] (helo=mail.yamaoka.cc) by minsk.hostforweb.net with esmtpa (Exim 4.52) id 1FEbEs-0006IF-5u for ding@gnus.org; Wed, 01 Mar 2006 18:00:14 -0600 Original-To: ding@gnus.org X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/23.0.0 (gnu/linux) Cancel-Lock: sha1:uBXa8oCMGKpxwJ7H57c0kpbkctQ= X-Hashcash: 1:20:060302:ding@gnus.org::hx+YDl7kbXL9Dnsw:00001uvY X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - minsk.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62117 Archived-At: >>>>> In Michael Piotrowski wrote: > No ideas about that, but XEmacs has `device-color-cells' instead of > `display-color-cells'. To be able to start Gnus, I changed > gmm-utils.el like this: [...] > ! (defcustom gmm-tool-bar-style (if (> (if (featurep 'xemacs) > ! (device-color-cells) > ! (display-color-cells)) 256) > 'gnome > 'retro) `device-color-cells' returns nil when XEmacs runs with -batch or -nw option. So it should be: --8<---------------cut here---------------start------------->8--- --- gmm-utils.el~ 2006-03-01 21:46:53 +0000 +++ gmm-utils.el 2006-03-01 23:42:12 +0000 @@ -176,7 +176,9 @@ :tag "Other" (symbol :tag "Icon item"))))) -(defcustom gmm-tool-bar-style (if (> (display-color-cells) 256) +(defcustom gmm-tool-bar-style (if (> (if (featurep 'xemacs) + (or (device-color-cells) 0) + (display-color-cells)) 256) 'gnome 'retro) "Prefered tool bar style." --8<---------------cut here---------------end--------------->8--- > I don't know whether this is the best solution, but it works for me. > I noticed that it `device-color-cells' returns 256 even though I've > got 24 bit color depth, but frankly, I don't care since I'm using my > own text-only toolbar anyway ;-) I also am not sure whether counting colors is proper way, so I refrain from installing it for the moment.