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 16:01:12 +0200 Message-ID: <53D7A928.6050505@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> <53D7679A.4010005@gmx.at> <53D78504.8090307@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 1406642512 16982 80.91.229.3 (29 Jul 2014 14:01:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Jul 2014 14:01:52 +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 16:01:45 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 1XC7yL-00010a-B4 for ged-emacs-devel@m.gmane.org; Tue, 29 Jul 2014 16:01:45 +0200 Original-Received: from localhost ([::1]:45919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC7yK-0003jZ-Va for ged-emacs-devel@m.gmane.org; Tue, 29 Jul 2014 10:01:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC7y9-0003Y9-3Q for emacs-devel@gnu.org; Tue, 29 Jul 2014 10:01:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XC7y1-0001JK-7J for emacs-devel@gnu.org; Tue, 29 Jul 2014 10:01:33 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:55388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC7y0-0001Iu-M2 for emacs-devel@gnu.org; Tue, 29 Jul 2014 10:01:24 -0400 Original-Received: from [62.46.213.117] ([62.46.213.117]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MbbWD-1WtE4J1rIT-00J2JO; Tue, 29 Jul 2014 16:01:18 +0200 In-Reply-To: <53D78504.8090307@yandex.ru> X-Provags-ID: V03:K0:Xntl4UZfYbZp50U2C+cgCkBLt5mbR939Dom/szjsiL2dBWdaPJ+ I0ScyqNLIvJ2MfgTLVIyj3LMyTsDYXwl0xMWENOGA7DiowHtckMkJj29TlU925x/sgkNMLn kw0iUg2xeE3Y3t7NLY4nbXOpSpjpAT0c5Kuqf8Bq1JSFz1Ox3YMWSVtzD6HSHbGOl4x+dUP rIu6bUD4YFUAfq5SGs87g== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.22 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:173251 Archived-At: > Not sure about Debian. Usually there should be a kind of a debug package. > On my Fedora 20 system, I have: > > Xaw3d-devel-1.6.2-5.fc20.x86_64 > Xaw3d-1.6.2-5.fc20.x86_64 > Xaw3d-debuginfo-1.6.2-5.fc20.x86_64 I have xaw3dg 1.5+E-18.2 xaw3dg-dev 1.5+E-18.2 Synaptic doesn't offer any debug package for xaw3d. > The last one installs Xaw3d sources under /usr/src/debug/libXaw3d-1.6.2, > and gdb uses them while stepping through source code. These are obviously absent here. > Do you use Xaw3d or Xaw? If any, what version? > > If that matters, this is even more interesting debugging session: [...] > So, vertical scroll bar's Core widget has background pixel 0xbfbfbf. [...] > Here Core's background pixel is 0xffffff and so colors calculated by > Xaw3dComputeTopShadowRGB and Xaw3dComputeBottomShadowRGB for top_shadow_pixel > and bot_shadow_pixel of our new shiny horizontal scroll bar are very > different from the corresponding colors of vertical scroll bar. > > I can use gdb to set horizontal scroll bar Core's tdw->core.background_pixel > to 0xbfbfbf and finally see horizontal scroll bar in an expected color. So there's nothing we even _could_ do here? Do you have any other application built with Lucid that has both types of scrollbars? > BTW, x_default_scroll_bar_color_parameter in xfns.c should take horizontal > scroll bar into account, isn't it? Hmmm... I missed the build_string ("verticalScrollBar") there. Could that be the cause? Can you fix it in any case (if I do it, it would be yet another exercise in trial and error ...). martin