From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62114 Path: news.gmane.org!not-for-mail From: Michael Piotrowski Newsgroups: gmane.emacs.gnus.general Subject: Re: Customizable tool bars Date: Wed, 01 Mar 2006 20:35:29 +0100 Organization: dynalabs Network Research Unit Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1141242176 7355 80.91.229.2 (1 Mar 2006 19:42:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Mar 2006 19:42:56 +0000 (UTC) Original-X-From: ding-owner+m10642@lists.math.uh.edu Wed Mar 01 20:42:46 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 1FEXCe-0002tU-BI for ding-account@gmane.org; Wed, 01 Mar 2006 20:41:41 +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 1FEXCY-0007Hm-00; Wed, 01 Mar 2006 13:41:34 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FEX9v-0007Hh-00 for ding@lists.math.uh.edu; Wed, 01 Mar 2006 13:38:51 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FEX9q-0003Wi-C1 for ding@lists.math.uh.edu; Wed, 01 Mar 2006 13:38:51 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FEX9o-00060G-00 for ; Wed, 01 Mar 2006 20:38:44 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FEX8j-0001o3-08 for ding@gnus.org; Wed, 01 Mar 2006 20:37:37 +0100 Original-Received: from dslb-088-072-036-068.pools.arcor-ip.net ([88.72.36.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Mar 2006 20:37:36 +0100 Original-Received: from mxp by dslb-088-072-036-068.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Mar 2006 20:37:36 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 57 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dslb-088-072-036-068.pools.arcor-ip.net User-Agent: Gnus/5.110004 (No Gnus v0.4) XEmacs/21.4.19 (berkeley-unix) X-Operating-System: NetBSD X-Face: %OvAx]kKl`N,i?yQ+$^p9w2oy)Yg|O}a_~6wtRQ@UTZ*(jSPubbonT]m++M>YBtJqkZZa!W"y5`aI.FoKO%$JHz=ws|i?y^o2bds(+pcp>gcX]H}?-tCzL^ABzJUWYzS{"!_hFg:JD)`kxRKLsNp Content-Language: en Cancel-Lock: sha1:Y5gYJpyD3uEgwhTb+HOHWRbqvQU= X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62114 Archived-At: --=-=-= Reiner Steib writes: > The new tool bars are now the default if (> (display-color-cells) 256). > > For some reason Emacs 21 returns nil for that whereas Emacs 22 returns > t on the same display. Any ideas? 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: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=gmm-utils.el.patch Content-Description: Use `device-color-cells' on XEmacs Index: lisp/gmm-utils.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/gmm-utils.el,v retrieving revision 7.15 diff -C2 -r7.15 gmm-utils.el *** lisp/gmm-utils.el 1 Mar 2006 16:51:17 -0000 7.15 --- lisp/gmm-utils.el 1 Mar 2006 19:29:25 -0000 *************** *** 177,181 **** (symbol :tag "Icon item"))))) ! (defcustom gmm-tool-bar-style (if (> (display-color-cells) 256) 'gnome 'retro) --- 177,183 ---- (symbol :tag "Icon item"))))) ! (defcustom gmm-tool-bar-style (if (> (if (featurep 'xemacs) ! (device-color-cells) ! (display-color-cells)) 256) 'gnome 'retro) --=-=-= 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 ;-) Greetings -- Michael Piotrowski, M.A. Public key at --=-=-=--