[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#37359: [PATCH] Fix ignored Motif scrollbar resources.
From: |
Matt Bisson |
Subject: |
bug#37359: [PATCH] Fix ignored Motif scrollbar resources. |
Date: |
Mon, 9 Sep 2019 14:27:07 -0400 (EDT) |
Hi Emacs maintainers,
I noticed that I was only able to set the "truck" color for scrollbars on
Motif. I tried a variety of methods, including explicitly setting resources
for the scrollbar class as documented by the libXm API, and using foreground
and background faces, but to no avail. After looking at the code in
src/xterm.c, I noticed that the creation code was not quite correct, so I
patched the code (attached):
On Motif scrollbars, "foreground" has no meaning, while "background" means the
truck and arrow colors, and "trough" means the background of the entire widget.
I have hooked up the Emacs scrollbar "foreground" color to the XmNbackground
resource, and the "background" color to XmNtroughColor. This is more in line
with how Xaw scrollbars behave.
I am still a little flummoxed as to why the more sweeping resource settings
like "*XmScrollBar*troughColor" seem to have no effect, but that's an issue for
another day, and I may look into it further as I have time.
My Emacs environment is 26.3 (but I noticed this code has been like this a long
time) running on 64-bit Linux (Gentoo). The Motif version is 2.3.8.
Thanks,
-Matt
0001-Fix-ignored-Motif-scrollbar-resources.patch
Description: Text Data
- bug#37359: [PATCH] Fix ignored Motif scrollbar resources.,
Matt Bisson <=
- bug#37359: [PATCH] Fix ignored Motif scrollbar resources., martin rudalics, 2019/09/10
- bug#37359: [PATCH] Fix ignored Motif scrollbar resources., Matt Bisson, 2019/09/10
- bug#37359: [PATCH] Fix ignored Motif scrollbar resources., martin rudalics, 2019/09/10
- bug#37359: [PATCH] Fix ignored Motif scrollbar resources., Matt Bisson, 2019/09/10
- bug#37359: [PATCH] Fix ignored Motif scrollbar resources., Glenn Morris, 2019/09/16
- bug#37359: [PATCH] Fix ignored Motif scrollbar resources., Matt Bisson, 2019/09/16
- bug#37359: [PATCH] Fix ignored Motif scrollbar resources., Glenn Morris, 2019/09/16
- bug#37359: [PATCH] Fix ignored Motif scrollbar resources., Matt Bisson, 2019/09/17
- bug#37359: [PATCH] Fix ignored Motif scrollbar resources., Eli Zaretskii, 2019/09/17
- bug#37359: [PATCH] Fix ignored Motif scrollbar resources., martin rudalics, 2019/09/18