emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/win


From: martin rudalics
Subject: Re: Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window code]
Date: Tue, 29 Jul 2014 11:21:30 +0200

> In Xaw3d sources, find these functions and install breakpoints
> at [HERE]:

Where can an ignorant like me find the sources (I'm on Debian)?

> 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.

Did you trace Xaw3dComputeTopShadowRGB and Xaw3dComputeBottomShadowRGB
why they compute different values?  Or XAllocColor?

martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]