From: Michael Piotrowski <mxp@dynalabs.de>
Subject: Re: Customizable tool bars
Date: Wed, 01 Mar 2006 20:35:29 +0100 [thread overview]
Message-ID: <x6k6be9cvy.fsf@eurus.mag.dynalabs.de> (raw)
In-Reply-To: <v9r75m12rs.fsf@marauder.physik.uni-ulm.de>
[-- Attachment #1: Type: text/plain, Size: 390 bytes --]
Reiner Steib <reinersteib+gmane@imap.cc> 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:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Use `device-color-cells' on XEmacs --]
[-- Type: text/x-patch, Size: 688 bytes --]
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)
[-- Attachment #3: Type: text/plain, Size: 383 bytes --]
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. <mxp@dynalabs.de>
Public key at <http://www.dynalabs.de/mxp/pubkey.txt>
next prev parent reply other threads:[~2006-03-01 19:35 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-20 22:22 Reiner Steib
2006-01-25 16:40 ` Reiner Steib
2006-01-26 0:53 ` Katsumi Yamaoka
2006-01-26 1:39 ` Steve Youngs
2006-01-26 2:35 ` Katsumi Yamaoka
2006-01-26 4:28 ` Steve Youngs
2006-01-26 5:14 ` Katsumi Yamaoka
2006-01-26 9:19 ` Reiner Steib
2006-01-26 11:31 ` Katsumi Yamaoka
2006-01-26 9:24 ` Reiner Steib
2006-01-26 10:52 ` Katsumi Yamaoka
2006-01-26 15:04 ` Reiner Steib
2006-01-30 23:45 ` Katsumi Yamaoka
2006-02-21 22:23 ` Reiner Steib
2006-02-22 5:04 ` Katsumi Yamaoka
2006-02-22 12:19 ` image-load-path/load-path function (was: Customizable tool bars) Reiner Steib
2006-02-22 14:53 ` image-load-path/load-path function Reiner Steib
2006-02-23 8:23 ` Katsumi Yamaoka
2006-02-23 11:50 ` Reiner Steib
2006-02-23 13:19 ` Katsumi Yamaoka
2006-02-23 15:17 ` Reiner Steib
2006-02-24 8:03 ` Katsumi Yamaoka
2006-02-24 8:40 ` Katsumi Yamaoka
2006-02-23 18:13 ` Bill Wohler
2006-03-01 23:33 ` Bill Wohler
2006-03-02 1:07 ` Bill Wohler
2006-03-02 4:31 ` Peter S Galbraith
2006-03-02 17:13 ` Reiner Steib
2006-03-02 20:30 ` Bill Wohler
2006-03-02 22:05 ` Reiner Steib
2006-03-03 0:49 ` Bill Wohler
2006-03-03 0:52 ` Bill Wohler
2006-03-03 16:38 ` Reiner Steib
2006-03-03 22:46 ` Bill Wohler
2006-03-03 22:47 ` Bill Wohler
2006-03-04 16:27 ` Reiner Steib
2006-03-04 17:55 ` Bill Wohler
2006-03-06 16:11 ` Bill Wohler
2006-03-11 2:16 ` Bill Wohler
[not found] ` <8096.1141420620@olgas.newt.com>
2006-03-04 23:33 ` Bill Wohler
2006-03-02 16:59 ` Reiner Steib
2006-03-02 17:22 ` Bill Wohler
2006-02-22 12:23 ` Customizable tool bars Reiner Steib
2006-03-01 17:41 ` Reiner Steib
2006-03-01 18:26 ` Romain Francoise
2006-03-02 16:30 ` Reiner Steib
2006-03-01 19:35 ` Michael Piotrowski [this message]
2006-03-01 22:51 ` Reiner Steib
2006-03-02 0:00 ` Katsumi Yamaoka
2006-03-02 11:16 ` Michael Piotrowski
2006-03-02 16:31 ` Reiner Steib
2006-03-02 18:00 ` Michael Piotrowski
2006-03-01 22:49 ` Katsumi Yamaoka
2006-03-02 10:49 ` Reiner Steib
2006-03-02 23:34 ` Katsumi Yamaoka
2006-03-03 10:35 ` Reiner Steib
2006-03-06 4:00 ` Katsumi Yamaoka
2006-03-06 10:32 ` Reiner Steib
2006-03-06 12:16 ` Katsumi Yamaoka
2006-03-03 16:47 ` low-color variants of the Gnome icons (was: Customizable tool bars) Reiner Steib
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=x6k6be9cvy.fsf@eurus.mag.dynalabs.de \
--to=mxp@dynalabs.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).