]> git.eshelyaron.com Git - emacs.git/commitdiff
John Paul Wallington <jpw at pobox.com>
authorGlenn Morris <rgm@gnu.org>
Sun, 14 Oct 2007 02:50:11 +0000 (02:50 +0000)
committerGlenn Morris <rgm@gnu.org>
Sun, 14 Oct 2007 02:50:11 +0000 (02:50 +0000)
(x_create_tip_frame): Set the `display-type' frame parameter before
setting up faces.

admin/FOR-RELEASE
src/ChangeLog
src/xfns.c

index f31c4d07b7b87d9489cd22115538377f9f990d40..4ae742d9b9031b4b0f3055153189b8dc128e92f6 100644 (file)
@@ -65,12 +65,6 @@ http://lists.gnu.org/archive/html/emacs-devel/2007-09/msg02442.html
  property is not displayed
 http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg00138.html
 
-** bojohan+news@dd.chalmers.se, Sep 21:
- tooltip frame uses (class mono) when processing defface specs
-(Actually it uses no class at all.)
-http://lists.gnu.org/archive/html/emacs-devel/2007-09/msg01793.html
-[jpw@pobox.com has a patch]
-
 * FIXES FOR EMACS 22.3
 
 Here we list any small fixes that arrived too late for Emacs 22.2, but
index b42c75ab75a9ab90ea8b6a496696de886e0090fa..27662e950a2d90e8e1b6fab891cf5b214cb3d3e2 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-07  John Paul Wallington  <jpw@pobox.com>
+
+       * xfns.c (x_create_tip_frame): Set the `display-type' frame
+       parameter before setting up faces.
+
 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
 
        * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
index 136727368491374f7549bc0987c34ebf19e083c1..d1f35eee4e7903bc104e5454290e2662278a768f 100644 (file)
@@ -4927,6 +4927,26 @@ x_create_tip_frame (dpyinfo, parms, text)
     Fmodify_frame_parameters (frame, Fcons (Fcons (intern ("tooltip"), Qt),
                                            Qnil));
 
+  /* FIXME - can this be done in a similar way to normal frames?
+     http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg00641.html */
+
+  /* Set the `display-type' frame parameter before setting up faces. */
+  {
+    Lisp_Object disptype;
+
+    if (FRAME_X_DISPLAY_INFO (f)->n_planes == 1)
+      disptype = intern ("mono");
+    else if (FRAME_X_DISPLAY_INFO (f)->visual->class == GrayScale ||
+             FRAME_X_DISPLAY_INFO (f)->visual->class == StaticGray)
+      disptype = intern ("grayscale");
+    else
+      disptype = intern ("color");
+
+    if (NILP (Fframe_parameter (frame, Qdisplay_type)))
+      Fmodify_frame_parameters (frame, Fcons (Fcons (Qdisplay_type, disptype),
+                                              Qnil));
+  }
+
   /* Set up faces after all frame parameters are known.  This call
      also merges in face attributes specified for new frames.