Subject: bug#5132: 23.1; Incorrect toolbar icon display with (tool-bar-mode 1)

From: Steve Revilak <[email-masked]>
Date: Sat, 5 Dec 2009 22:49:26 -0500

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the [email-masked] mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Symptoms: when (tool-bar-mode 1) is used with Emacs 23.1.1 on Mac OS
X, the toolbar icons are black and gray silhouettes.  Here is a screen
capture which shows toolbar mode on Emacs 23.

   http://www.cs.umb.edu/~srevilak/images/tool-bar-mode-23.png

I expected to see color tool bar icons, as show in the following image
(a screen capture taken from emacs 22.3.1)

   http://www.cs.umb.edu/~srevilak/images/tool-bar-mode-22.png

Steps to Reproduce:

Start emacs as follows:

   /Applications/Emacs-23.1.app/Contents/MacOS/Emacs --no-init-file

Once emacs has started, eval the following

   (tool-bar-mode 1)

uname for my system is

   Darwin spud.local 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
     `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/Applications/Emacs-23.1.app/Contents/Resources/etc/DEBUG for instructions.

In GNU Emacs 23.1.1 (powerpc-apple-darwin8.11.0, NS apple-appkit-824.48)
  of 2009-10-14 on spud.local
Windowing system distributor `Apple', version 10.3.824
configured using `configure  '--with-ns''

Important settings:
   value of $LC_ALL: nil
   value of $LC_COLLATE: C
   value of $LC_CTYPE: nil
   value of $LC_MESSAGES: nil
   value of $LC_MONETARY: nil
   value of $LC_NUMERIC: nil
   value of $LC_TIME: nil
   value of $LANG: en_US.UTF-8
   value of $XMODIFIERS: nil
   locale-coding-system: utf-8-unix
   default-enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
   tooltip-mode: t
   tool-bar-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   global-auto-composition-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   line-number-mode: t
   transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <return> C-x C-f 
f o o . t x t <return> ( t o o l - b a r - m o d e 
SPC 1 ) C-x C-e s-x <help-echo> C-g C-x C-e <left> 
<backspace> 0 <right> C-x C-e <left> <backspace> 1 
<right> C-x C-e <help-echo> C-a C-k s-x s-x M-x r e 
p o <tab> t <tab> <backspace> r <tab> <return>

Recent messages:
kill-region: The mark is not set now, so there is no region
Quit
Auto-saving...
Quit
t
nil
t
Auto-saving...
kill-region: The mark is not set now, so there is no region [2 times]
Making completion list...