From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62133 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Customizable tool bars Date: Fri, 03 Mar 2006 08:34:47 +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 1141342724 14948 80.91.229.2 (2 Mar 2006 23:38:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Mar 2006 23:38:44 +0000 (UTC) Original-X-From: ding-owner+m10661@lists.math.uh.edu Fri Mar 03 00:38:39 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 1FExNO-00017G-9S for ding-account@gmane.org; Fri, 03 Mar 2006 00:38:30 +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 1FExNJ-0001RR-00; Thu, 02 Mar 2006 17:38:25 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FExKG-0001RL-00 for ding@lists.math.uh.edu; Thu, 02 Mar 2006 17:35:16 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FExKC-0004g0-US for ding@lists.math.uh.edu; Thu, 02 Mar 2006 17:35:16 -0600 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FExKB-0002SY-00 for ; Fri, 03 Mar 2006 00:35:11 +0100 Original-Received: from [205.234.185.198] (port=38472 helo=mail.jpl.org) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1FExKj-0007Pl-CS for ding@gnus.org; Thu, 02 Mar 2006 17:35:46 -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/21.1 (gnu/linux) Cancel-Lock: sha1:WlLaXhy38USaOJuZyij7pNhdYxw= X-Hashcash: 1:20:060302:ding@gnus.org::B0BndgNksD778i7O:00002YjC X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.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:62133 Archived-At: >>>>> In >>>>> Reiner Steib wrote: > On Wed, Mar 01 2006, Katsumi Yamaoka wrote: >> Emacs 21.1, 21.2 and 21.4 >> => 256 >> Emacs 22.0.50 and 23.0.0 >> => 16777216 >> XEmacs 21.4.19 and 21.5-b25 (using `device-color-cells') >> => 256 >> >> Are 256 colors insufficient to display Gnome icons? Well, Emacs 21 and XEmacs don't seem to tell the truth. Those Emacsen display pictures and icons beautifully, but I know how the 8-bit pseudo color terminal does. Anyway, now Emacs 21 displays Gnome icons on the Gnus frames by default because `display-visual-class' returns `true-color'. No problem. > Assuming that those values were correct: Yes, 256 colors (8 bit color > depth) is insufficient. I didn't count the number of colors in the > icons [1], but 256 colors get exhausted *very* soon. > You can try it with... > X :1 -depth 8 & > twm -display :1 & > xterm -display :1 & > emacs -display :1 & Oh, I didn't know such a way. > Set `gmm-tool-bar-style' to 'gnome, start gnus-slave. Already here > the colors in the icons are reduced AFAICS. > Then start e.g. gv: > Warning: Cannot allocate colormap entry for "AntiqueWhite3" > Warning: Cannot allocate colormap entry for "AntiqueWhite2" > Warning: Cannot allocate colormap entry for "AntiqueWhite4" > Warning: Cannot allocate colormap entry for "gray40" > Warning: Cannot allocate colormap entry for "gray78" > Warning: Cannot allocate colormap entry for "#D3B5B5" > Close gv, start firefox. You'll see that it uses a private colormap > for it's windows. I see. I recalled I was often troubled with them in old days. > BTW, both Emacs 21 and Emacs 22 reported 256 (correct) on the 8-bit > display. I don't know how to get the correct information for > 8-bit > from Emacs 21. (I didn't follow the URL given by Romain yet -- I'm > offline). But even if there is no technical possibility in Emacs 21, > the user can simply customize a single variable `gmm-tool-bar-style' > to get Gnome icons (this was one of the main reasons why I introduced > it). How about adding the toggle button to the toolbat itself? It switches Gnome, Retro, and the default Emacs buttons. ;-)