diff options
author | Stefan Monnier <[email protected]> | 2002-04-19 18:38:16 +0000 |
---|---|---|
committer | Stefan Monnier <[email protected]> | 2002-04-19 18:38:16 +0000 |
commit | 3d90c96c540ff2219a26ce0b3242b5050c16073d (patch) | |
tree | 38559f5e259a861e979e9b5998a2491b30d86557 | |
parent | c37adaa5eaf360904ee4f32d01fa998c496d28a6 (diff) |
(clear_font_table): Don't free the default font of
a frame even if it's on another display.
(Finternal_set_lisp_face_attribute): Don't use XFRAME on something
that could be Qt.
-rw-r--r-- | src/ChangeLog | 16 | ||||
-rw-r--r-- | src/xfaces.c | 5 |
2 files changed, 13 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 286ee38b7f..0aafb69a5f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2002-04-19 Stefan Monnier <[email protected]> + + * xfaces.c (clear_font_table): Don't free the default font of + a frame even if it's on another display. + (Finternal_set_lisp_face_attribute): Don't use XFRAME on something + that could be Qt. + 2002-04-19 Juanma Barranquero <[email protected]> * indent.c (Fmove_to_column): Remove unused local variable @@ -7,7 +14,7 @@ 2002-04-19 Eli Zaretskii <[email protected]> * msdos.c (Qhbar): New variable. - (syms_of_msdos): intern and staticpro it. + (syms_of_msdos): Intern and staticpro it. (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar' cursor type. @@ -22,7 +29,7 @@ (x_display_and_set_cursor): Handle the HBAR_CURSOR case. * xfns.c (Qhbar): New variable. - (syms_of_xfns): intern and staticpro it. + (syms_of_xfns): Intern and staticpro it. (x_specified_cursor_type): Handle `hbar' cursor. * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is @@ -44,8 +51,7 @@ 2002-04-17 Juanma Barranquero <[email protected]> - * indent.c (Fmove_to_column): Remove unused local variable - `end_byte'. + * indent.c (Fmove_to_column): Remove unused local variable `end_byte'. 2002-04-17 Eli Zaretskii <[email protected]> @@ -57,7 +63,7 @@ * w32fns.c (Fx_file_dialog): Decode file name before using. * w32term.c (construct_drag_n_drop): Likewise. - + 2002-04-16 Eli Zaretskii <[email protected]> * puresize.h (BASE_PURESIZE): Increase to 830000, since we now diff --git a/src/xfaces.c b/src/xfaces.c index c1d736eeb2..256bb3a656 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -1054,12 +1054,11 @@ clear_font_table (dpyinfo) if (font_info->name == NULL) continue; - /* Don't free a default font of some frame on this display. */ + /* Don't free a default font of some frame. */ FOR_EACH_FRAME (tail, frame) { struct frame *f = XFRAME (frame); if (FRAME_WINDOW_P (f) - && FRAME_X_DISPLAY_INFO (f) == dpyinfo && font_info->font == FRAME_FONT (f)) break; } @@ -4052,7 +4051,7 @@ FRAME 0 means change the face on all frames, and change the default else if (EQ (attr, QCfont)) { #ifdef HAVE_WINDOW_SYSTEM - if (FRAME_WINDOW_P (XFRAME (frame))) + if (EQ (frame, Qt) || FRAME_WINDOW_P (XFRAME (frame))) { /* Set font-related attributes of the Lisp face from an XLFD font name. */ |