From xemacs-m  Mon Mar 10 16:41:10 1997
Received: from gwa.ericsson.com (gwa.ericsson.com [198.215.127.2])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id QAA03710
	for <xemacs-beta@xemacs.org>; Mon, 10 Mar 1997 16:41:08 -0600 (CST)
Received: from mr2.exu.ericsson.se (mr2.exu.ericsson.com [138.85.147.12]) by gwa.ericsson.com (8.8.2/8.8.2) with ESMTP id QAA01041; Mon, 10 Mar 1997 16:40:32 -0600 (CST)
Received: from screamer.rtp.ericsson.se (screamer.rtp.ericsson.se [147.117.133.13]) by mr2.exu.ericsson.se (8.7.1/NAHUB-MR1.1) with SMTP id QAA18941; Mon, 10 Mar 1997 16:40:31 -0600 (CST)
Received: from rcur (rcur18.rtp.ericsson.se [147.117.133.138]) by screamer.rtp.ericsson.se (8.6.12/8.6.4) with ESMTP id RAA02684; Mon, 10 Mar 1997 17:40:30 -0500
To: Kyle Jones <kyle_jones@wonderworks.com>
cc: xemacs-beta@xemacs.org
References: <199703101351.OAA15982@sonne.darmstadt.gmd.de>  <QQcghk01503.199703101806@crystal.WonderWorks.COM> 
Subject: Re: toolbar-shadow b97->b98 
In-reply-to: (Your message of Mon, 10 Mar 1997 13:06:23 EST.)
             <QQcghk01503.199703101806@crystal.WonderWorks.COM> 
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: text/plain; charset=US-ASCII
Date: Mon, 10 Mar 1997 17:40:30 -0500
Message-ID: <8495.858033630@rtp.ericsson.se>
From: Raymond Toy <toy@rtp.ericsson.se>

>>>>> "Kyle" == Kyle Jones <kyle_jones@wonderworks.com> writes:


    Kyle> The relevant function is x_initialize_frame_toolbar_gcs.
    Kyle> The code that is likely failing is

    Kyle>   if (ef->emacs_frame.top_toolbar_shadow_pixel == 0)
    Kyle>     {
[blah blah]
    Kyle>     }
    Kyle>   if (ef->emacs_frame.bottom_toolbar_shadow_pixel == 0)
    Kyle>     {
[blah blah]
    Kyle>     }

    Kyle> Both of these if's should fail in an XEmacs without
    Kyle> topToolBarShadowColor and bottomToolBarShadowColor resources
    Kyle> defined.

What does "fail" mean in this context?

I ran this under a debugger.  I took out my any references to
topToolBarShadowColor, etc. from my .Xdefaults (and anything else
related to shadow color).

I find that both ef->emacs_frame.top_toolbar_shadow_pixel and
ef->emacs_frame.bottom_toolbar_shadow_pixel are set to 1.

Based on your comments, I'm assuming that they should be 0.  Where are
they set?  Some will have to give me some hints on where to look.  I
don't grok X much less XEmacs. :-(

In case it helps, here is the value of ef on entry to
x_initialize_frame_toolbar_gcs:

(gdb) p *ef
$12 = {core = {self = 0x530800, widget_class = 0x3601d0, parent = 0x503200, 
    xrm_name = 1136, being_destroyed = 0 '\000', destroy_callbacks = 0x0, 
    constraints = 0x0, x = 0, y = 0, width = 8, height = 8, border_width = 0, 
    managed = 1 '\001', sensitive = 1 '\001', ancestor_sensitive = 1 '\001', 
    event_table = 0x532f40, tm = {translations = 0x532f60, proc_table = 0x0, 
      current_state = 0x0, lastEventTime = 0}, accelerators = 0x0, 
    border_pixel = 1, border_pixmap = 2, popup_list = 0x0, num_popups = 0, 
    name = 0x475550 "emacs", screen = 0x4da200, colormap = 33, window = 0, 
    depth = 8, background_pixel = 4, background_pixmap = 2, 
    visible = 1 '\001', mapped_when_managed = 1 '\001'}, primitive = {
    foreground = 1, shadow_thickness = 2, top_shadow_color = 47, 
    top_shadow_pixmap = 2, bottom_shadow_color = 48, bottom_shadow_pixmap = 2, 
    highlight_thickness = 2, highlight_color = 1, highlight_pixmap = 2, 
    help_callback = 0x0, user_data = 0x0, traversal_on = 1 '\001', 
    highlight_on_enter = 0 '\000', have_traversal = 0 '\000', 
    unit_type = 0 '\000', navigation_type = 0 '\000', 
    highlight_drawn = 0 '\000', highlighted = 0 '\000', 
    highlight_GC = 0x533f80, top_shadow_GC = 0x3f3080, 
    bottom_shadow_GC = 0x533000}, emacs_frame = {frame = 0x503d00, 
    geometry = 0x0, iconic = 0 '\000', minibuffer = 1 '\001', 
    unsplittable = 0 '\000', internal_border_width = 4, scrollbar_width = 15, 
    scrollbar_height = 15, top_toolbar_height = 37, 
    bottom_toolbar_height = -1, left_toolbar_width = -1, 
    right_toolbar_width = -1, top_toolbar_shadow_pixel = 1, 
    bottom_toolbar_shadow_pixel = 1, background_toolbar_pixel = 50, 
    top_toolbar_shadow_pixmap = 0, bottom_toolbar_shadow_pixmap = 0, 
    toolbar_shadow_thickness = 2, scrollbar_placement = 2 '\002', 
    interline = 0, font = 0x0, foreground_pixel = 1, cursor_color = 1, 
    bar_cursor = 0 '\000', visual_bell = 0 '\000', bell_volume = 0, 
    menubar_p = 1 '\001', initially_unmapped = 0 '\000', 
    use_backing_store = 0 '\000', preferred_width = 0,
    preferred_height = 0}}

Ray

