comparison src/xfaces.c @ 36481:8456d3257f81

(Finternal_set_lisp_face_attribute) [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's parameters alist.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 02 Mar 2001 13:30:40 +0000
parents ea51e9f7266e
children acf152adbf82
comparison
equal deleted inserted replaced
36480:59455f09babf 36481:8456d3257f81
4062 { 4062 {
4063 ++face_change_count; 4063 ++face_change_count;
4064 ++windows_or_buffers_changed; 4064 ++windows_or_buffers_changed;
4065 } 4065 }
4066 4066
4067 #ifdef HAVE_WINDOW_SYSTEM
4068
4069 if (!UNSPECIFIEDP (value) 4067 if (!UNSPECIFIEDP (value)
4070 && NILP (Fequal (old_value, value))) 4068 && NILP (Fequal (old_value, value)))
4071 { 4069 {
4072 Lisp_Object param; 4070 Lisp_Object param;
4073 4071
4074 param = Qnil; 4072 param = Qnil;
4075 4073
4076 if (EQ (face, Qdefault)) 4074 if (EQ (face, Qdefault))
4077 { 4075 {
4076 #ifdef HAVE_WINDOW_SYSTEM
4078 /* Changed font-related attributes of the `default' face are 4077 /* Changed font-related attributes of the `default' face are
4079 reflected in changed `font' frame parameters. */ 4078 reflected in changed `font' frame parameters. */
4080 if ((font_related_attr_p || font_attr_p) 4079 if ((font_related_attr_p || font_attr_p)
4081 && lface_fully_specified_p (XVECTOR (lface)->contents)) 4080 && lface_fully_specified_p (XVECTOR (lface)->contents))
4082 set_font_frame_param (frame, lface); 4081 set_font_frame_param (frame, lface);
4083 else if (EQ (attr, QCforeground)) 4082 else
4083 #endif /* HAVE_WINDOW_SYSTEM */
4084
4085 if (EQ (attr, QCforeground))
4084 param = Qforeground_color; 4086 param = Qforeground_color;
4085 else if (EQ (attr, QCbackground)) 4087 else if (EQ (attr, QCbackground))
4086 param = Qbackground_color; 4088 param = Qbackground_color;
4087 } 4089 }
4090 #ifdef HAVE_WINDOW_SYSTEM
4088 #ifndef WINDOWSNT 4091 #ifndef WINDOWSNT
4089 else if (EQ (face, Qscroll_bar)) 4092 else if (EQ (face, Qscroll_bar))
4090 { 4093 {
4091 /* Changing the colors of `scroll-bar' sets frame parameters 4094 /* Changing the colors of `scroll-bar' sets frame parameters
4092 `scroll-bar-foreground' and `scroll-bar-background'. */ 4095 `scroll-bar-foreground' and `scroll-bar-background'. */
4115 /* Changing background color of `mouse' sets frame parameter 4118 /* Changing background color of `mouse' sets frame parameter
4116 `mouse-color'. */ 4119 `mouse-color'. */
4117 if (EQ (attr, QCbackground)) 4120 if (EQ (attr, QCbackground))
4118 param = Qmouse_color; 4121 param = Qmouse_color;
4119 } 4122 }
4123 #endif /* HAVE_WINDOW_SYSTEM */
4120 else if (EQ (face, Qmenu)) 4124 else if (EQ (face, Qmenu))
4121 ++menu_face_change_count; 4125 ++menu_face_change_count;
4122 4126
4123 if (!NILP (param)) 4127 if (!NILP (param))
4124 if (EQ (frame, Qt)) 4128 if (EQ (frame, Qt))
4134 XCAR (cons) = param; 4138 XCAR (cons) = param;
4135 XCDR (cons) = value; 4139 XCDR (cons) = value;
4136 Fmodify_frame_parameters (frame, Vparam_value_alist); 4140 Fmodify_frame_parameters (frame, Vparam_value_alist);
4137 } 4141 }
4138 } 4142 }
4139
4140 #endif /* HAVE_WINDOW_SYSTEM */
4141 4143
4142 return face; 4144 return face;
4143 } 4145 }
4144 4146
4145 4147