[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window
From: |
Dmitry Antipov |
Subject: |
Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window code] |
Date: |
Mon, 28 Jul 2014 22:22:55 +0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 |
On 07/28/2014 01:27 PM, martin rudalics wrote:
Hmmm... how to reproduce that here? Basically, you are the first person
on this list I would ask for a fix if I ever ran into such a problem.
This is what I'm doing:
In Xaw3d sources, find these functions and install breakpoints
at [HERE]:
static void
AllocTopShadowPixel (Widget new)
{
XColor set_c;
ThreeDWidget tdw = (ThreeDWidget) new;
Display *dpy = XtDisplay (new);
Colormap cmap = new->core.colormap;
Xaw3dComputeTopShadowRGB (new, &set_c);
(void) XAllocColor (dpy, cmap, &set_c);
tdw->threeD.top_shadow_pixel = set_c.pixel; /* HERE */
}
static void
AllocBotShadowPixel (Widget new)
{
XColor set_c;
ThreeDWidget tdw = (ThreeDWidget) new;
Display *dpy = XtDisplay (new);
Colormap cmap = new->core.colormap;
Xaw3dComputeBottomShadowRGB (new, &set_c);
(void) XAllocColor (dpy, cmap, &set_c);
tdw->threeD.bot_shadow_pixel = set_c.pixel; /* HERE */
}
Next install breakpoints on x_create_toolkit_scroll_bar and
x_create_horizontal_toolkit_scroll_bar and trace calls to
AllocTopShadowPixel/AllocBotShadowPixel from these functions.
I'm seeing that for the vertical scroll bar, top_shadow_pixel
is 0xe6e6e6 and bot_shadow_pixel is 0x737373. But for the
horizontal one, top_shadow_pixel is 0xcccccc and bot_shadow_pixel
is 0x666666. No ideas why they're different. Funny old toolkits.
Can you replay this debugging sequence and check your top_shadow_pixel
and bot_shadow_pixel values for both scroll bars?
Dmitry
- Re: Changes in frame/window code, (continued)
Re: Changes in frame/window code, Dmitry Antipov, 2014/07/23
Re: Changes in frame/window code, martin rudalics, 2014/07/27
- Re: Changes in frame/window code, Eli Zaretskii, 2014/07/27
- Re: Changes in frame/window code, Eli Zaretskii, 2014/07/27
- Re: Changes in frame/window code, martin rudalics, 2014/07/27
- Re: Changes in frame/window code, Dmitry Antipov, 2014/07/28
- Re: Changes in frame/window code, martin rudalics, 2014/07/28
- Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window code],
Dmitry Antipov <=
- Re: Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window code], martin rudalics, 2014/07/29
- Re: Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window code], Dmitry Antipov, 2014/07/29
- Re: Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window code], martin rudalics, 2014/07/29
- Re: Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window code], Jan Djärv, 2014/07/29
- Re: Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window code], Dmitry Antipov, 2014/07/29
- Re: Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window code], Jan Djärv, 2014/07/29
- Re: Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window code], martin rudalics, 2014/07/30
Bingo [Re: Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window code]], Dmitry Antipov, 2014/07/29
Re: Bingo [Re: Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window code]], Jan Djärv, 2014/07/29
Re: Bingo [Re: Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window code]], martin rudalics, 2014/07/30