comparison src/xfaces.c @ 63642:cb0d171c8273

Rename obsolete function Qframe_update_face_colors to Qframe_set_background_mode.
author Juri Linkov <juri@jurta.org>
date Tue, 21 Jun 2005 16:14:34 +0000
parents 4c33b0ac74a3
children 144440a09db1
comparison
equal deleted inserted replaced
63641:0e9b134bfaa1 63642:cb0d171c8273
314 Lisp_Object Qunspecified; 314 Lisp_Object Qunspecified;
315 315
316 char unspecified_fg[] = "unspecified-fg", unspecified_bg[] = "unspecified-bg"; 316 char unspecified_fg[] = "unspecified-fg", unspecified_bg[] = "unspecified-bg";
317 317
318 /* The name of the function to call when the background of the frame 318 /* The name of the function to call when the background of the frame
319 has changed, frame_update_face_colors. */ 319 has changed, frame_set_background_mode. */
320 320
321 Lisp_Object Qframe_update_face_colors; 321 Lisp_Object Qframe_set_background_mode;
322 322
323 /* Names of basic faces. */ 323 /* Names of basic faces. */
324 324
325 Lisp_Object Qdefault, Qtool_bar, Qregion, Qfringe; 325 Lisp_Object Qdefault, Qtool_bar, Qregion, Qfringe;
326 Lisp_Object Qheader_line, Qscroll_bar, Qcursor, Qborder, Qmouse, Qmenu; 326 Lisp_Object Qheader_line, Qscroll_bar, Qcursor, Qborder, Qmouse, Qmenu;
4507 else if (EQ (param, Qbackground_color)) 4507 else if (EQ (param, Qbackground_color))
4508 { 4508 {
4509 Lisp_Object frame; 4509 Lisp_Object frame;
4510 4510
4511 /* Changing the background color might change the background 4511 /* Changing the background color might change the background
4512 mode, so that we have to load new defface specs. Call 4512 mode, so that we have to load new defface specs.
4513 frame-update-face-colors to do that. */ 4513 Call frame-set-background-mode to do that. */
4514 XSETFRAME (frame, f); 4514 XSETFRAME (frame, f);
4515 call1 (Qframe_update_face_colors, frame); 4515 call1 (Qframe_set_background_mode, frame);
4516 4516
4517 face = Qdefault; 4517 face = Qdefault;
4518 lface = lface_from_face_name (f, face, 1); 4518 lface = lface_from_face_name (f, face, 1);
4519 LFACE_BACKGROUND (lface) = (STRINGP (new_value) 4519 LFACE_BACKGROUND (lface) = (STRINGP (new_value)
4520 ? new_value : Qunspecified); 4520 ? new_value : Qunspecified);
7885 staticpro (&Qface); 7885 staticpro (&Qface);
7886 Qface_no_inherit = intern ("face-no-inherit"); 7886 Qface_no_inherit = intern ("face-no-inherit");
7887 staticpro (&Qface_no_inherit); 7887 staticpro (&Qface_no_inherit);
7888 Qbitmap_spec_p = intern ("bitmap-spec-p"); 7888 Qbitmap_spec_p = intern ("bitmap-spec-p");
7889 staticpro (&Qbitmap_spec_p); 7889 staticpro (&Qbitmap_spec_p);
7890 Qframe_update_face_colors = intern ("frame-update-face-colors"); 7890 Qframe_set_background_mode = intern ("frame-set-background-mode");
7891 staticpro (&Qframe_update_face_colors); 7891 staticpro (&Qframe_set_background_mode);
7892 7892
7893 /* Lisp face attribute keywords. */ 7893 /* Lisp face attribute keywords. */
7894 QCfamily = intern (":family"); 7894 QCfamily = intern (":family");
7895 staticpro (&QCfamily); 7895 staticpro (&QCfamily);
7896 QCheight = intern (":height"); 7896 QCheight = intern (":height");