comparison src/faces.c @ 5636:07256dcc0c8b

Add missing foreback specifier values to the GUI Element face. They were missing for an unexplicable reason in my initial patch, leading to nil color instances in the whole hierarchy of widget faces. -------------------- ChangeLog entries follow: -------------------- src/ChangeLog addition: 2012-01-03 Didier Verna <didier@xemacs.org> * faces.c (complex_vars_of_faces): Add missing foreback specifier values to the GUI Element face.
author Didier Verna <didier@lrde.epita.fr>
date Tue, 03 Jan 2012 11:25:06 +0100
parents 6fa0c5fb6154
children
comparison
equal deleted inserted replaced
5635:2fc3f2f35523 5636:07256dcc0c8b
2561 #ifdef HAVE_GTK 2561 #ifdef HAVE_GTK
2562 /* We need to put something in there, or error checking gets 2562 /* We need to put something in there, or error checking gets
2563 #%!@#ed up before the styles are set, which override the 2563 #%!@#ed up before the styles are set, which override the
2564 fallbacks. */ 2564 fallbacks. */
2565 fg_fb = Facons (list1 (Qgtk), build_ascstring ("black"), fg_fb); 2565 fg_fb = Facons (list1 (Qgtk), build_ascstring ("black"), fg_fb);
2566 fb_fb = Facons (list1 (Qgtk), build_ascstring ("Gray70"), fb_fb);
2566 bg_fb = Facons (list1 (Qgtk), build_ascstring ("Gray80"), bg_fb); 2567 bg_fb = Facons (list1 (Qgtk), build_ascstring ("Gray80"), bg_fb);
2567 #endif 2568 #endif
2568 #ifdef HAVE_X_WINDOWS 2569 #ifdef HAVE_X_WINDOWS
2569 fg_fb = Facons (list1 (Qx), build_ascstring ("black"), fg_fb); 2570 fg_fb = Facons (list1 (Qx), build_ascstring ("black"), fg_fb);
2571 fb_fb = Facons (list1 (Qx), build_ascstring ("Gray70"), fb_fb);
2570 bg_fb = Facons (list1 (Qx), build_ascstring ("Gray80"), bg_fb); 2572 bg_fb = Facons (list1 (Qx), build_ascstring ("Gray80"), bg_fb);
2571 #endif 2573 #endif
2572 #ifdef HAVE_TTY 2574 #ifdef HAVE_TTY
2573 fg_fb = Facons (list1 (Qtty), Fvector (0, 0), fg_fb); 2575 fg_fb = Facons (list1 (Qtty), Fvector (0, 0), fg_fb);
2576 fb_fb = Facons (list1 (Qtty), Fvector (0, 0), fb_fb);
2574 bg_fb = Facons (list1 (Qtty), Fvector (0, 0), bg_fb); 2577 bg_fb = Facons (list1 (Qtty), Fvector (0, 0), bg_fb);
2575 #endif 2578 #endif
2576 #ifdef HAVE_MS_WINDOWS 2579 #ifdef HAVE_MS_WINDOWS
2577 fg_fb = Facons (list1 (Qmsprinter), build_ascstring ("black"), fg_fb); 2580 fg_fb = Facons (list1 (Qmsprinter), build_ascstring ("black"), fg_fb);
2581 fb_fb = Facons (list1 (Qmsprinter), build_ascstring ("Gray90"), fb_fb);
2578 bg_fb = Facons (list1 (Qmsprinter), build_ascstring ("white"), bg_fb); 2582 bg_fb = Facons (list1 (Qmsprinter), build_ascstring ("white"), bg_fb);
2579 fg_fb = Facons (list1 (Qmswindows), build_ascstring ("black"), fg_fb); 2583 fg_fb = Facons (list1 (Qmswindows), build_ascstring ("black"), fg_fb);
2584 fb_fb = Facons (list1 (Qmswindows), build_ascstring ("Gray65"), fb_fb);
2580 bg_fb = Facons (list1 (Qmswindows), build_ascstring ("Gray75"), bg_fb); 2585 bg_fb = Facons (list1 (Qmswindows), build_ascstring ("Gray75"), bg_fb);
2581 #endif 2586 #endif
2582 set_specifier_fallback (Fget (Vgui_element_face, Qforeground, Qnil), 2587 set_specifier_fallback (Fget (Vgui_element_face, Qforeground, Qnil),
2583 fg_fb); 2588 fg_fb);
2584 set_specifier_fallback (Fget (Vgui_element_face, Qforeback, Qnil), 2589 set_specifier_fallback (Fget (Vgui_element_face, Qforeback, Qnil),