aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-10-14 02:50:11 +0000
committerGlenn Morris2007-10-14 02:50:11 +0000
commit7663ea748d2b0f66c8ce64328f1ddeb3769d4f9d (patch)
treefcdb0fc348ac16fca39f98da9351720985c94f47
parent2140d97eb79de0260c6ca963d1d2eb456777246b (diff)
downloademacs-7663ea748d2b0f66c8ce64328f1ddeb3769d4f9d.tar.gz
emacs-7663ea748d2b0f66c8ce64328f1ddeb3769d4f9d.zip
John Paul Wallington <jpw at pobox.com>
(x_create_tip_frame): Set the `display-type' frame parameter before setting up faces.
-rw-r--r--admin/FOR-RELEASE6
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xfns.c20
3 files changed, 25 insertions, 6 deletions
diff --git a/admin/FOR-RELEASE b/admin/FOR-RELEASE
index f31c4d07b7b..4ae742d9b90 100644
--- a/admin/FOR-RELEASE
+++ b/admin/FOR-RELEASE
@@ -65,12 +65,6 @@ http://lists.gnu.org/archive/html/emacs-devel/2007-09/msg02442.html
65 property is not displayed 65 property is not displayed
66http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg00138.html 66http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg00138.html
67 67
68** bojohan+news@dd.chalmers.se, Sep 21:
69 tooltip frame uses (class mono) when processing defface specs
70(Actually it uses no class at all.)
71http://lists.gnu.org/archive/html/emacs-devel/2007-09/msg01793.html
72[jpw@pobox.com has a patch]
73
74* FIXES FOR EMACS 22.3 68* FIXES FOR EMACS 22.3
75 69
76Here we list any small fixes that arrived too late for Emacs 22.2, but 70Here we list any small fixes that arrived too late for Emacs 22.2, but
diff --git a/src/ChangeLog b/src/ChangeLog
index b42c75ab75a..27662e950a2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
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 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving 8 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
diff --git a/src/xfns.c b/src/xfns.c
index 13672736849..d1f35eee4e7 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -4927,6 +4927,26 @@ x_create_tip_frame (dpyinfo, parms, text)
4927 Fmodify_frame_parameters (frame, Fcons (Fcons (intern ("tooltip"), Qt), 4927 Fmodify_frame_parameters (frame, Fcons (Fcons (intern ("tooltip"), Qt),
4928 Qnil)); 4928 Qnil));
4929 4929
4930 /* FIXME - can this be done in a similar way to normal frames?
4931 http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg00641.html */
4932
4933 /* Set the `display-type' frame parameter before setting up faces. */
4934 {
4935 Lisp_Object disptype;
4936
4937 if (FRAME_X_DISPLAY_INFO (f)->n_planes == 1)
4938 disptype = intern ("mono");
4939 else if (FRAME_X_DISPLAY_INFO (f)->visual->class == GrayScale ||
4940 FRAME_X_DISPLAY_INFO (f)->visual->class == StaticGray)
4941 disptype = intern ("grayscale");
4942 else
4943 disptype = intern ("color");
4944
4945 if (NILP (Fframe_parameter (frame, Qdisplay_type)))
4946 Fmodify_frame_parameters (frame, Fcons (Fcons (Qdisplay_type, disptype),
4947 Qnil));
4948 }
4949
4930 /* Set up faces after all frame parameters are known. This call 4950 /* Set up faces after all frame parameters are known. This call
4931 also merges in face attributes specified for new frames. 4951 also merges in face attributes specified for new frames.
4932 4952