aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2008-10-30 01:27:06 +0000
committerJuanma Barranquero2008-10-30 01:27:06 +0000
commit601a9cf1e3376caefba7bfe4e60402ac1ec219dd (patch)
tree10d0784087c53e25197f28fff8a07e1237744149
parent48238d1d4509e9cbd26beccc34abc76f37610771 (diff)
downloademacs-601a9cf1e3376caefba7bfe4e60402ac1ec219dd.tar.gz
emacs-601a9cf1e3376caefba7bfe4e60402ac1ec219dd.zip
* w32fns.c (x_create_tip_frame): Prevent default foreground color for
new frames overriding foreground for tooltips. Based on similar patch from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
-rw-r--r--src/ChangeLog8
-rw-r--r--src/w32fns.c12
2 files changed, 16 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a690efe2c9b..f64c77b8e9f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12008-10-30 Juanma Barranquero <lekktu@gmail.com>
2
3 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4 new frames overriding foreground for tooltips. Based on similar patch
5 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6
12008-10-29 Chong Yidong <cyd@stupidchicken.com> 72008-10-29 Chong Yidong <cyd@stupidchicken.com>
2 8
3 * emacs.c (Fdaemon_initialized): Initialize nfd. 9 * emacs.c (Fdaemon_initialized): Initialize nfd.
@@ -37,7 +43,7 @@
37 (main): Don't set is_daemon. 43 (main): Don't set is_daemon.
38 (IS_DAEMON): New macro. 44 (IS_DAEMON): New macro.
39 (Fdaemonp, Fdaemon_initialized): Use it. 45 (Fdaemonp, Fdaemon_initialized): Use it.
40 (Fdaemon_initialized): Wrtie a char into the pipe to make sure the 46 (Fdaemon_initialized): Write a char into the pipe to make sure the
41 parent exits. 47 parent exits.
42 (syms_of_emacs): Explicitly initialize daemon_pipe[1]. 48 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
43 49
diff --git a/src/w32fns.c b/src/w32fns.c
index f98a53f95d4..3fe9622b007 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -4364,7 +4364,7 @@ This function is an internal primitive--use `make-frame' instead. */)
4364 x_default_parameter (f, parameters, Qborder_width, make_number (2), 4364 x_default_parameter (f, parameters, Qborder_width, make_number (2),
4365 "borderWidth", "BorderWidth", RES_TYPE_NUMBER); 4365 "borderWidth", "BorderWidth", RES_TYPE_NUMBER);
4366 4366
4367 /* We recognize either internalBorderWidth or internalBorder 4367 /* We recognize either internalBorderWidth or internalBorder
4368 (which is what xterm calls it). */ 4368 (which is what xterm calls it). */
4369 if (NILP (Fassq (Qinternal_border_width, parameters))) 4369 if (NILP (Fassq (Qinternal_border_width, parameters)))
4370 { 4370 {
@@ -5534,14 +5534,20 @@ x_create_tip_frame (dpyinfo, parms, text)
5534 of the tooltip frame appear in pink. Prevent this. */ 5534 of the tooltip frame appear in pink. Prevent this. */
5535 { 5535 {
5536 Lisp_Object bg = Fframe_parameter (frame, Qbackground_color); 5536 Lisp_Object bg = Fframe_parameter (frame, Qbackground_color);
5537 Lisp_Object fg = Fframe_parameter (frame, Qforeground_color);
5538 Lisp_Object colors = Qnil;
5537 5539
5538 /* Set tip_frame here, so that */ 5540 /* Set tip_frame here, so that */
5539 tip_frame = frame; 5541 tip_frame = frame;
5540 call2 (Qface_set_after_frame_default, frame, Qnil); 5542 call2 (Qface_set_after_frame_default, frame, Qnil);
5541 5543
5542 if (!EQ (bg, Fframe_parameter (frame, Qbackground_color))) 5544 if (!EQ (bg, Fframe_parameter (frame, Qbackground_color)))
5543 Fmodify_frame_parameters (frame, Fcons (Fcons (Qbackground_color, bg), 5545 colors = Fcons (Fcons (Qbackground_color, bg), colors);
5544 Qnil)); 5546 if (!EQ (fg, Fframe_parameter (frame, Qforeground_color)))
5547 colors = Fcons (Fcons (Qforeground_color, fg), colors);
5548
5549 if (!NILP (colors))
5550 Fmodify_frame_parameters (frame, colors);
5545 } 5551 }
5546 5552
5547 f->no_split = 1; 5553 f->no_split = 1;