Mercurial > emacs
comparison src/xfaces.c @ 26759:01f067d61668
(x_set_menu_resources_from_menu_face): Make sure
basic faces are realized before trying to use face `menu'.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 07 Dec 1999 20:06:40 +0000 |
parents | 1ecff1922462 |
children | d6aa11f2a4af |
comparison
equal
deleted
inserted
replaced
26758:cbc780bdc2bd | 26759:01f067d61668 |
---|---|
3986 void | 3986 void |
3987 x_set_menu_resources_from_menu_face (f, widget) | 3987 x_set_menu_resources_from_menu_face (f, widget) |
3988 struct frame *f; | 3988 struct frame *f; |
3989 Widget widget; | 3989 Widget widget; |
3990 { | 3990 { |
3991 /* Realized faces may have been removed on frame F, e.g. because of | |
3992 face attribute changes. Recompute them, if necessary, since we | |
3993 will need the `menu' face. */ | |
3994 if (f->face_cache->used == 0) | |
3995 recompute_basic_faces (f); | |
3996 | |
3991 #ifdef USE_LUCID | 3997 #ifdef USE_LUCID |
3992 xl_set_menu_resources_from_menu_face (f, widget); | 3998 xl_set_menu_resources_from_menu_face (f, widget); |
3993 #endif | 3999 #endif |
3994 #ifdef USE_MOTIF | 4000 #ifdef USE_MOTIF |
3995 xm_set_menu_resources_from_menu_face (f, widget); | 4001 xm_set_menu_resources_from_menu_face (f, widget); |