diff options
author | Jason Rumney <jasonr@gnu.org> | 2009-01-01 02:05:39 +0000 |
---|---|---|
committer | Jason Rumney <jasonr@gnu.org> | 2009-01-01 02:05:39 +0000 |
commit | b1032c6ec9cf70101a9300c60bcf95a542e6cd84 (patch) | |
tree | b0d1edf26caefe69e6a0599a84406df14d4aafaf /src/w32term.c | |
parent | f58de08abba3d17fcc584ebcb65b30d63e66eabf (diff) | |
download | emacs-b1032c6ec9cf70101a9300c60bcf95a542e6cd84.tar.gz |
(x_new_font): Return font object, not fontset. (Bug#119)
Don't block input, as per earlier xterm.c changes.
Diffstat (limited to 'src/w32term.c')
-rw-r--r-- | src/w32term.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/w32term.c b/src/w32term.c index aab2d0d7473..f771427e548 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -5229,9 +5229,7 @@ x_new_font (f, font_object, fontset) if (FRAME_FONT (f) == font) /* This font is already set in frame F. There's nothing more to do. */ - return fontset_name (fontset); - - BLOCK_INPUT; + return font_object; FRAME_FONT (f) = font; FRAME_BASELINE_OFFSET (f) = font->baseline_offset; @@ -5264,15 +5262,9 @@ x_new_font (f, font_object, fontset) x_set_window_size (f, 0, FRAME_COLS (f), FRAME_LINES (f)); } -#ifdef HAVE_X_I18N - if (FRAME_XIC (f) - && (FRAME_XIC_STYLE (f) & (XIMPreeditPosition | XIMStatusArea))) - xic_set_xfontset (f, SDATA (fontset_ascii (fontset))); -#endif - - UNBLOCK_INPUT; + /* X version sets font of input methods here also. */ - return fontset_name (fontset); + return font_object; } |