From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel 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 Message-ID: <53D7679A.4010005@gmx.at> References: <53CE6A44.1010708@gmx.at> <53D4FF76.1060804@gmx.at> <8338dmj1of.fsf@gnu.org> <83wqayhe0o.fsf@gnu.org> <53D542B3.20206@gmx.at> <53D5D618.4070302@yandex.ru> <53D61765.6090705@gmx.at> <53D694FF.906@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1406625731 28768 80.91.229.3 (29 Jul 2014 09:22:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Jul 2014 09:22:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 29 11:22:04 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XC3bb-0000P3-Qx for ged-emacs-devel@m.gmane.org; Tue, 29 Jul 2014 11:21:59 +0200 Original-Received: from localhost ([::1]:44375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC3bb-0002Kb-D9 for ged-emacs-devel@m.gmane.org; Tue, 29 Jul 2014 05:21:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC3bQ-0002K9-7v for emacs-devel@gnu.org; Tue, 29 Jul 2014 05:21:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XC3bH-0007s0-Qu for emacs-devel@gnu.org; Tue, 29 Jul 2014 05:21:48 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:60188) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC3bH-0007rk-Gb for emacs-devel@gnu.org; Tue, 29 Jul 2014 05:21:39 -0400 Original-Received: from [93.82.14.115] ([93.82.14.115]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0LgptO-1Wfiqs1xSA-00oBwk; Tue, 29 Jul 2014 11:21:36 +0200 In-Reply-To: <53D694FF.906@yandex.ru> X-Provags-ID: V03:K0:kU4Bv0dwEB+C5QkXxT/Bk4km8PytnMxipFEe2oW73zqIzQPBlRK PyaB4C7VT8vutgLoIvr7h6r9zZqT3QF/RFY9AXqRxACdrjf/zBWsdtHqESGtMITgmZ6/ytu t3HbBSbUqRbQLJloKaUr5j4mxxVJtLc5mOOMkvkHSui4rHas/xJ6nlkpJqXlWXBvbJO9UUF acHt9UUzVedwGFhhFX6uQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173238 Archived-At: > 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