aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2007-10-14 02:46:53 +0000
committerGlenn Morris2007-10-14 02:46:53 +0000
commit35fdaa62d7fd33543b1641ca7276bd1abdbf9a50 (patch)
treeb85dcc6f2debfec04d0bbe2204d112f2e284bf9e /src
parentee46ec8e40dc2ab5107c57a9bbc358455f8c0bad (diff)
downloademacs-35fdaa62d7fd33543b1641ca7276bd1abdbf9a50.tar.gz
emacs-35fdaa62d7fd33543b1641ca7276bd1abdbf9a50.zip
John Paul Wallington <jpw at pobox.com>
(x_create_tip_frame): Set the `display-type' frame parameter before setting up faces.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog11
-rw-r--r--src/xfns.c17
2 files changed, 25 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3d8e6307f42..56bc1228f0d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,6 +1,11 @@
12007-10-07 John Paul Wallington <jpw@pobox.com>
2
3 * xfns.c (x_create_tip_frame): Set the `display-type' frame
4 parameter before setting up faces.
5
12007-10-13 Eli Zaretskii <eliz@gnu.org> 62007-10-13 Eli Zaretskii <eliz@gnu.org>
2 7
3 * ccl.c (Fregister_code_conversion_map): 8 * ccl.c (Fregister_code_conversion_map):
4 * keyboard.c (append_tool_bar_item): Reformat last change. 9 * keyboard.c (append_tool_bar_item): Reformat last change.
5 10
6 * lisp.h (eabs): Rename from `abs'. All callers changed. 11 * lisp.h (eabs): Rename from `abs'. All callers changed.
@@ -13,9 +18,9 @@
13 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item) 18 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
14 (append_tool_bar_item): 19 (append_tool_bar_item):
15 * macmenu.c (grow_menu_items): 20 * macmenu.c (grow_menu_items):
16 * w32menu.c (grow_menu_items): 21 * w32menu.c (grow_menu_items):
17 * xmenu.c (grow_menu_items): Use larger_vector. 22 * xmenu.c (grow_menu_items): Use larger_vector.
18 23
192007-10-13 Eli Zaretskii <eliz@gnu.org> 242007-10-13 Eli Zaretskii <eliz@gnu.org>
20 25
21 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving 26 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
diff --git a/src/xfns.c b/src/xfns.c
index 764cbbafa77..e3ce2220e73 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -4947,6 +4947,23 @@ x_create_tip_frame (dpyinfo, parms, text)
4947 Fmodify_frame_parameters (frame, Fcons (Fcons (intern ("tooltip"), Qt), 4947 Fmodify_frame_parameters (frame, Fcons (Fcons (intern ("tooltip"), Qt),
4948 Qnil)); 4948 Qnil));
4949 4949
4950 /* Set the `display-type' frame parameter before setting up faces. */
4951 {
4952 Lisp_Object disptype;
4953
4954 if (FRAME_X_DISPLAY_INFO (f)->n_planes == 1)
4955 disptype = intern ("mono");
4956 else if (FRAME_X_DISPLAY_INFO (f)->visual->class == GrayScale ||
4957 FRAME_X_DISPLAY_INFO (f)->visual->class == StaticGray)
4958 disptype = intern ("grayscale");
4959 else
4960 disptype = intern ("color");
4961
4962 if (NILP (Fframe_parameter (frame, Qdisplay_type)))
4963 Fmodify_frame_parameters (frame, Fcons (Fcons (Qdisplay_type, disptype),
4964 Qnil));
4965 }
4966
4950 /* Set up faces after all frame parameters are known. This call 4967 /* Set up faces after all frame parameters are known. This call
4951 also merges in face attributes specified for new frames. 4968 also merges in face attributes specified for new frames.
4952 4969