From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jan_Dj=E4rv?= 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 17:42:22 +0200 Message-ID: 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> <53D7A928.6050505@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1406648575 4136 80.91.229.3 (29 Jul 2014 15:42:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Jul 2014 15:42:55 +0000 (UTC) Cc: Dmitry Antipov , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 29 17:42:48 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 1XC9Y2-0001fw-Ml for ged-emacs-devel@m.gmane.org; Tue, 29 Jul 2014 17:42:42 +0200 Original-Received: from localhost ([::1]:46675 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC9Y2-00011n-9k for ged-emacs-devel@m.gmane.org; Tue, 29 Jul 2014 11:42:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC9Xt-00011f-QI for emacs-devel@gnu.org; Tue, 29 Jul 2014 11:42:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XC9Xn-000465-9s for emacs-devel@gnu.org; Tue, 29 Jul 2014 11:42:33 -0400 Original-Received: from mailfe02.swip.net ([212.247.154.33]:48559 helo=swip.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC9Xn-000454-38 for emacs-devel@gnu.org; Tue, 29 Jul 2014 11:42:27 -0400 X-T2-Spam-Status: No, hits=-0.0 required=5.0 tests=BAYES_40 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 520780414; Tue, 29 Jul 2014 17:42:24 +0200 In-Reply-To: <53D7A928.6050505@gmx.at> X-Mailer: Apple Mail (2.1878.6) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.247.154.33 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:173257 Archived-At: Hi. 29 jul 2014 kl. 16:01 skrev martin rudalics : >=20 > > BTW, x_default_scroll_bar_color_parameter in xfns.c should take = horizontal > > scroll bar into account, isn't it? >=20 > 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 ...). >=20 The color is read from the X resource database by the Xaw widget = library. The resource database is seeded in xrdb.c with (for example) sprintf (line, "Emacs*verticalScrollBar.background: grey75"); but when the horizontal scroll bar is created it has the name = horizontalScrollBar, so no wonder the colors are different. Adding = corresponding lines in xrdb.c for horizontalScrollBar should do it (3 = places). Jan D.