aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2009-01-01 02:06:27 +0000
committerJason Rumney2009-01-01 02:06:27 +0000
commitf9c34147fde3bdfdf36e27a582af163a6043de7a (patch)
tree12308637518159bf0626560a0025d97be6e18adf /src
parent174dc00c7415e479d698f4fa8ef037223d50de08 (diff)
downloademacs-f9c34147fde3bdfdf36e27a582af163a6043de7a.tar.gz
emacs-f9c34147fde3bdfdf36e27a582af163a6043de7a.zip
(x_new_font): Return font object, not fontset. (Bug#119)
Don't block input, as per earlier xterm.c changes.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/w32term.c14
2 files changed, 9 insertions, 12 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index eba071fcd98..78ab1412377 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12009-01-01 Jason Rumney <jasonr@gnu.org>
2
3 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
4 Don't block input, as per earlier xterm.c changes.
5
12008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com> 62008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
2 7
3 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version. 8 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
@@ -31,7 +36,7 @@
312008-12-30 Jason Rumney <jasonr@gnu.org> 362008-12-30 Jason Rumney <jasonr@gnu.org>
32 37
33 * frame.c (store_frame_param, x_get_arg): Enable newer code on 38 * frame.c (store_frame_param, x_get_arg): Enable newer code on
34 WINDOWSNT too, as related changes have already been synced. 39 WINDOWSNT too, as related changes have already been synced. (Bug#117)
35 40
362008-12-30 Chong Yidong <cyd@stupidchicken.com> 412008-12-30 Chong Yidong <cyd@stupidchicken.com>
37 42
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)
5229 if (FRAME_FONT (f) == font) 5229 if (FRAME_FONT (f) == font)
5230 /* This font is already set in frame F. There's nothing more to 5230 /* This font is already set in frame F. There's nothing more to
5231 do. */ 5231 do. */
5232 return fontset_name (fontset); 5232 return font_object;
5233
5234 BLOCK_INPUT;
5235 5233
5236 FRAME_FONT (f) = font; 5234 FRAME_FONT (f) = font;
5237 FRAME_BASELINE_OFFSET (f) = font->baseline_offset; 5235 FRAME_BASELINE_OFFSET (f) = font->baseline_offset;
@@ -5264,15 +5262,9 @@ x_new_font (f, font_object, fontset)
5264 x_set_window_size (f, 0, FRAME_COLS (f), FRAME_LINES (f)); 5262 x_set_window_size (f, 0, FRAME_COLS (f), FRAME_LINES (f));
5265 } 5263 }
5266 5264
5267#ifdef HAVE_X_I18N 5265 /* X version sets font of input methods here also. */
5268 if (FRAME_XIC (f)
5269 && (FRAME_XIC_STYLE (f) & (XIMPreeditPosition | XIMStatusArea)))
5270 xic_set_xfontset (f, SDATA (fontset_ascii (fontset)));
5271#endif
5272
5273 UNBLOCK_INPUT;
5274 5266
5275 return fontset_name (fontset); 5267 return font_object;
5276} 5268}
5277 5269
5278 5270