aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-09-06 12:48:24 +0000
committerGerd Moellmann2001-09-06 12:48:24 +0000
commitf76e03683e1e34fea4aadcc890b762541f50efd8 (patch)
treef62bbd3481ebff2258ff41119259be335427699e /src
parent003550c5e3239fc7a09c1ef4d397fc985a94a7aa (diff)
downloademacs-f76e03683e1e34fea4aadcc890b762541f50efd8.tar.gz
emacs-f76e03683e1e34fea4aadcc890b762541f50efd8.zip
(x_set_background_color): Don't change the colors
of the X window of scroll bar widgets.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xfns.c21
2 files changed, 18 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3466100cf3e..3a2a7b77caf 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12001-09-06 Gerd Moellmann <gerd@gnu.org>
2
3 * xfns.c (x_set_background_color): Don't change the colors
4 of the X window of scroll bar widgets.
5
12001-09-05 Andrew Innes <andrewi@gnu.org> 62001-09-05 Andrew Innes <andrewi@gnu.org>
2 7
3 * w32fns.c (w32_createwindow): Undo last change. 8 * w32fns.c (w32_createwindow): Undo last change.
diff --git a/src/xfns.c b/src/xfns.c
index d26ce6466fe..e180b9561ef 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1410,7 +1410,6 @@ x_set_background_color (f, arg, oldval)
1410 if (FRAME_X_WINDOW (f) != 0) 1410 if (FRAME_X_WINDOW (f) != 0)
1411 { 1411 {
1412 Display *dpy = FRAME_X_DISPLAY (f); 1412 Display *dpy = FRAME_X_DISPLAY (f);
1413 Lisp_Object bar;
1414 1413
1415 BLOCK_INPUT; 1414 BLOCK_INPUT;
1416 XSetBackground (dpy, x->normal_gc, bg); 1415 XSetBackground (dpy, x->normal_gc, bg);
@@ -1418,13 +1417,19 @@ x_set_background_color (f, arg, oldval)
1418 XSetWindowBackground (dpy, FRAME_X_WINDOW (f), bg); 1417 XSetWindowBackground (dpy, FRAME_X_WINDOW (f), bg);
1419 XSetForeground (dpy, x->cursor_gc, bg); 1418 XSetForeground (dpy, x->cursor_gc, bg);
1420 1419
1421 for (bar = FRAME_SCROLL_BARS (f); 1420#ifndef USE_TOOLKIT_SCROLL_BARS /* Turns out to be annoying with
1422 !NILP (bar); 1421 toolkit scroll bars. */
1423 bar = XSCROLL_BAR (bar)->next) 1422 {
1424 { 1423 Lisp_Object bar;
1425 Window window = SCROLL_BAR_X_WINDOW (XSCROLL_BAR (bar)); 1424 for (bar = FRAME_SCROLL_BARS (f);
1426 XSetWindowBackground (dpy, window, bg); 1425 !NILP (bar);
1427 } 1426 bar = XSCROLL_BAR (bar)->next)
1427 {
1428 Window window = SCROLL_BAR_X_WINDOW (XSCROLL_BAR (bar));
1429 XSetWindowBackground (dpy, window, bg);
1430 }
1431 }
1432#endif /* USE_TOOLKIT_SCROLL_BARS */
1428 1433
1429 UNBLOCK_INPUT; 1434 UNBLOCK_INPUT;
1430 update_face_from_frame_parameter (f, Qbackground_color, arg); 1435 update_face_from_frame_parameter (f, Qbackground_color, arg);