From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window code] Date: Mon, 28 Jul 2014 22:22:55 +0400 Message-ID: <53D694FF.906@yandex.ru> 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> 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 1406571815 32285 80.91.229.3 (28 Jul 2014 18:23:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jul 2014 18:23:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 28 20:23:29 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 1XBpa4-0001M1-0G for ged-emacs-devel@m.gmane.org; Mon, 28 Jul 2014 20:23:28 +0200 Original-Received: from localhost ([::1]:41798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBpa3-0007IM-Aw for ged-emacs-devel@m.gmane.org; Mon, 28 Jul 2014 14:23:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBpZt-0007IG-3i for emacs-devel@gnu.org; Mon, 28 Jul 2014 14:23:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBpZl-0003Y5-VP for emacs-devel@gnu.org; Mon, 28 Jul 2014 14:23:17 -0400 Original-Received: from forward9l.mail.yandex.net ([84.201.143.142]:46428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBpZl-0003Y1-MV for emacs-devel@gnu.org; Mon, 28 Jul 2014 14:23:09 -0400 Original-Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [37.140.190.27]) by forward9l.mail.yandex.net (Yandex) with ESMTP id 55F7DE6175A; Mon, 28 Jul 2014 22:23:08 +0400 (MSK) Original-Received: from smtp2o.mail.yandex.net (localhost [127.0.0.1]) by smtp2o.mail.yandex.net (Yandex) with ESMTP id EA56B36A275D; Mon, 28 Jul 2014 22:23:07 +0400 (MSK) Original-Received: from 155.gprs.mts.ru (155.gprs.mts.ru [213.87.136.155]) by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id lyk4yeLqcP-N7DGnb4f; Mon, 28 Jul 2014 22:23:07 +0400 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: f1317335-92e4-4685-b32c-2e6daaf4ce72 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1406571787; bh=wP3kq8U8iUraFo0qRy+pPQ7i0JLEbo+65Wxvu6ZTpkk=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=pD++9fo49RdCVaa2fm0Oz7pl7hF79+LSWaO6MbkPcH8PDaTzmuYDQaFOoMieo3u5Q APhriGed5+SB8pZbCfV3Vrq1sjxZw+Sl+2Tjm0ZvDkqBIDr6//GGux4GL37ysLuOpB HFBBOFvMhXSJAW7L8JaAUPZ7dX78ShaZUv2ui4i4= Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: <53D61765.6090705@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 84.201.143.142 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:173224 Archived-At: 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