From: Dmitry Antipov <dmantipov@yandex.ru>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel@gnu.org
Subject: Re: Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window code]
Date: Tue, 29 Jul 2014 15:27:00 +0400 [thread overview]
Message-ID: <53D78504.8090307@yandex.ru> (raw)
In-Reply-To: <53D7679A.4010005@gmx.at>
On 07/29/2014 01:21 PM, martin rudalics wrote:
> Where can an ignorant like me find the sources (I'm on Debian)?
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
The last one installs Xaw3d sources under /usr/src/debug/libXaw3d-1.6.2,
and gdb uses them while stepping through source code.
Do you use Xaw3d or Xaw? If any, what version?
If that matters, this is even more interesting debugging session:
(gdb) b x_create_toolkit_scroll_bar
Breakpoint 1 at 0x538f6c: file ../../trunk/src/xterm.c, line 4795.
(gdb) b x_create_horizontal_toolkit_scroll_bar
Breakpoint 2 at 0x5395a5: file ../../trunk/src/xterm.c, line 4994.
(gdb) r -Q
Breakpoint 1, x_create_toolkit_scroll_bar (f=0x1130ce0, bar=0x11c5998) at ../../trunk/src/xterm.c:4795
4795 int ac = 0;
(gdb) b Xaw3dComputeTopShadowRGB
Breakpoint 3 at 0x7ffff7da6690: file ThreeD.c, line 313.
(gdb) b Xaw3dComputeBottomShadowRGB
Breakpoint 4 at 0x7ffff7da6860: file ThreeD.c, line 359.
(gdb) c
Continuing.
Breakpoint 3, Xaw3dComputeTopShadowRGB (new=new@entry=0xd0f220, xcol_out=xcol_out@entry=0x7fffffffa0d0) at ThreeD.c:313
313 {
(gdb) n
314 if (XtIsSubclass (new, threeDWidgetClass)) {
(gdb)
318 Display *dpy = XtDisplay (new);
(gdb)
322 get_c.pixel = tdw->core.background_pixel;
(gdb) p /x tdw->core.background_pixel
$1 = 0xbfbfbf
(gdb) c
Continuing.
Breakpoint 4, Xaw3dComputeBottomShadowRGB (new=new@entry=0xd0f220, xcol_out=xcol_out@entry=0x7fffffffa0d0) at ThreeD.c:359
359 {
(gdb) n
360 if (XtIsSubclass (new, threeDWidgetClass)) {
(gdb)
364 Display *dpy = XtDisplay (new);
(gdb)
368 get_c.pixel = tdw->core.background_pixel;
(gdb) p /x tdw->core.background_pixel
$2 = 0xbfbfbf
So, vertical scroll bar's Core widget has background pixel 0xbfbfbf.
Next, we create horizontal scroll bar and see:
Breakpoint 2, x_create_horizontal_toolkit_scroll_bar (f=0x1130ce0, bar=0x11c6908) at ../../trunk/src/xterm.c:4994
4994 int ac = 0;
(gdb) c
Continuing.
Breakpoint 3, Xaw3dComputeTopShadowRGB (new=new@entry=0xbe6a70, xcol_out=xcol_out@entry=0x7fffffff93a0) at ThreeD.c:313
313 {
(gdb) n
314 if (XtIsSubclass (new, threeDWidgetClass)) {
(gdb)
318 Display *dpy = XtDisplay (new);
(gdb)
322 get_c.pixel = tdw->core.background_pixel;
(gdb) p /x tdw->core.background_pixel
$3 = 0xffffff
(gdb) c
Continuing.
Breakpoint 4, Xaw3dComputeBottomShadowRGB (new=new@entry=0xbe6a70, xcol_out=xcol_out@entry=0x7fffffff93a0) at ThreeD.c:359
359 {
(gdb) n
360 if (XtIsSubclass (new, threeDWidgetClass)) {
(gdb)
364 Display *dpy = XtDisplay (new);
(gdb)
368 get_c.pixel = tdw->core.background_pixel;
(gdb) p /x tdw->core.background_pixel
$4 = 0xffffff
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.
BTW, x_default_scroll_bar_color_parameter in xfns.c should take horizontal
scroll bar into account, isn't it?
Dmitry
next prev parent reply other threads:[~2014-07-29 11:27 UTC|newest]
Thread overview: 117+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-22 13:42 Changes in frame/window code martin rudalics
2014-07-23 10:45 ` Dmitry Antipov
2014-07-23 12:48 ` martin rudalics
2014-07-23 15:05 ` set-frame-height glitch [Was: Re: Changes in frame/window code] Dmitry Antipov
2014-07-23 15:36 ` martin rudalics
2014-07-23 15:26 ` Changes in frame/window code martin rudalics
2014-07-23 16:14 ` martin rudalics
2014-07-23 10:59 ` Dmitry Antipov
2014-07-23 12:48 ` martin rudalics
2014-07-27 13:32 ` martin rudalics
2014-07-27 14:50 ` Jan Djärv
2014-07-27 18:14 ` martin rudalics
2014-07-27 14:50 ` Eli Zaretskii
2014-07-27 18:07 ` Eli Zaretskii
2014-07-27 18:19 ` martin rudalics
2014-07-28 4:48 ` Dmitry Antipov
2014-07-28 9:27 ` martin rudalics
2014-07-28 18:22 ` Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window code] Dmitry Antipov
2014-07-29 9:21 ` martin rudalics
2014-07-29 11:27 ` Dmitry Antipov [this message]
2014-07-29 14:01 ` martin rudalics
2014-07-29 15:42 ` Jan Djärv
2014-07-29 16:54 ` Dmitry Antipov
2014-07-29 17:17 ` Jan Djärv
2014-07-30 16:44 ` martin rudalics
2014-07-29 16:43 ` Bingo [Re: Hint on Xaw3d scroll bar colors issue [Was: Re: Changes in frame/window code]] Dmitry Antipov
2014-07-29 17:14 ` Jan Djärv
2014-07-30 16:44 ` martin rudalics
2014-07-29 9:19 ` Changes in frame/window code martin rudalics
2014-07-29 11:28 ` Dmitry Antipov
[not found] ` <83tx62hane.fsf@gnu.org>
2014-07-28 9:26 ` martin rudalics
2014-07-28 13:38 ` Eli Zaretskii
2014-07-28 13:57 ` martin rudalics
2014-07-28 14:25 ` Eli Zaretskii
2014-07-28 17:27 ` martin rudalics
2014-07-28 18:15 ` Eli Zaretskii
2014-07-29 9:20 ` martin rudalics
2014-07-29 9:41 ` Eli Zaretskii
2014-07-29 9:55 ` Eli Zaretskii
2014-07-29 10:47 ` martin rudalics
2014-07-29 10:23 ` Eli Zaretskii
2014-07-29 10:47 ` martin rudalics
2014-07-29 11:33 ` Eli Zaretskii
2014-07-29 14:02 ` martin rudalics
2014-07-29 14:51 ` Eli Zaretskii
2014-07-29 15:43 ` martin rudalics
2014-07-29 16:14 ` Eli Zaretskii
2014-07-29 18:23 ` martin rudalics
2014-07-29 18:34 ` Eli Zaretskii
2014-07-30 16:05 ` martin rudalics
2014-07-30 16:27 ` Eli Zaretskii
2014-07-30 16:45 ` martin rudalics
2014-07-30 17:20 ` Eli Zaretskii
2014-07-30 17:36 ` martin rudalics
2014-07-30 17:53 ` Eli Zaretskii
2014-07-31 8:49 ` martin rudalics
2014-07-31 10:06 ` Eli Zaretskii
2014-07-31 10:09 ` martin rudalics
2014-07-31 11:06 ` Eli Zaretskii
2014-07-31 11:35 ` martin rudalics
2014-08-01 9:40 ` Eli Zaretskii
2014-08-01 10:25 ` martin rudalics
2014-08-01 13:12 ` Eli Zaretskii
2014-08-01 15:29 ` martin rudalics
2014-08-01 16:33 ` Eli Zaretskii
[not found] ` <53EE2CD5.50603@gmx.a>
2014-08-15 15:52 ` martin rudalics
2014-08-15 16:40 ` Eli Zaretskii
2014-08-16 9:35 ` martin rudalics
2014-08-16 11:29 ` Eli Zaretskii
[not found] ` <53EF609C.2090303@gmx>
2014-08-16 13:46 ` martin rudalics
2014-08-16 14:43 ` Eli Zaretskii
2014-08-16 16:07 ` martin rudalics
2014-08-16 16:09 ` martin rudalics
2014-08-16 16:19 ` martin rudalics
2014-08-17 15:13 ` Eli Zaretskii
2014-08-18 8:31 ` martin rudalics
2014-08-18 15:00 ` Eli Zaretskii
2014-08-18 16:11 ` martin rudalics
2014-08-18 16:22 ` Eli Zaretskii
2014-08-19 15:15 ` Eli Zaretskii
2014-08-20 14:45 ` Eli Zaretskii
2014-08-20 15:32 ` martin rudalics
2014-08-20 15:32 ` martin rudalics
2014-08-20 15:49 ` Eli Zaretskii
2014-08-28 9:40 ` martin rudalics
2014-08-28 15:10 ` Eli Zaretskii
2014-08-28 19:05 ` martin rudalics
2014-08-28 19:15 ` Eli Zaretskii
2014-08-29 9:00 ` martin rudalics
2014-08-29 9:53 ` Eli Zaretskii
2014-08-31 15:48 ` Eli Zaretskii
2014-08-31 16:22 ` martin rudalics
2014-08-28 15:56 ` Glenn Morris
2014-08-28 19:04 ` martin rudalics
2014-07-29 20:35 ` Jan Djärv
2014-07-29 10:44 ` martin rudalics
2014-07-29 15:29 ` Jan Djärv
2014-07-29 16:34 ` Eli Zaretskii
2014-07-31 16:18 ` Stefan Monnier
2014-07-31 16:37 ` Tassilo Horn
2014-07-31 16:53 ` martin rudalics
2014-08-27 17:13 ` Drew Adams
2014-07-31 17:32 ` Eli Zaretskii
2014-07-31 16:38 ` Eli Zaretskii
2014-07-31 16:53 ` martin rudalics
2014-09-03 16:17 ` martin rudalics
2014-09-04 18:30 ` Glenn Morris
2014-09-05 10:47 ` martin rudalics
2014-09-05 17:14 ` Glenn Morris
2014-07-27 18:15 ` martin rudalics
2014-07-27 17:14 ` Stefan Monnier
2014-07-27 18:15 ` martin rudalics
2014-07-27 20:28 ` Glenn Morris
2014-08-05 1:42 ` Jay Belanger
2014-08-05 8:38 ` martin rudalics
2014-08-05 14:37 ` Jay Belanger
2014-08-05 15:45 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53D78504.8090307@yandex.ru \
--to=dmantipov@yandex.ru \
--cc=emacs-devel@gnu.org \
--cc=rudalics@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).