Fix handling of X resource for window icons.
authorChong Yidong <cyd@stupidchicken.com>
Sun, 18 Sep 2011 20:01:37 +0000 (16:01 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 18 Sep 2011 20:01:37 +0000 (16:01 -0400)
* src/xfns.c (Fx_create_frame): Handle bitmapIcon resource as a boolean.

* doc/emacs/cmdargs.texi (Icons X): Fix description of Emacs icon.

* doc/emacs/xresources.texi (Table of Resources): Fix documentation of
bitmapIcon.

* doc/lispref/frames.texi (Management Parameters): Fix description of
icon-type parameter.

Fixes: debbugs:9154

doc/emacs/ChangeLog
doc/emacs/cmdargs.texi
doc/emacs/xresources.texi
doc/lispref/ChangeLog
doc/lispref/frames.texi
src/ChangeLog
src/xfns.c

index d87493d..163eabe 100644 (file)
@@ -1,3 +1,10 @@
+2011-09-18  Chong Yidong  <cyd@stupidchicken.com>
+
+       * cmdargs.texi (Icons X): Fix description of Emacs icon.
+
+       * xresources.texi (Table of Resources): Fix documentation of
+       bitmapIcon.
+
 2011-09-15  Chong Yidong  <cyd@stupidchicken.com>
 
        * package.texi (Package Menu): Add package-menu-mark-upgrades.
index 2a19e1b..07cca53 100644 (file)
@@ -1107,7 +1107,7 @@ Start Emacs in an iconified (``minimized'') state.
 @itemx --no-bitmap-icon
 @opindex --no-bitmap-icon
 @cindex Emacs icon, a gnu
-Do not use a picture of a gnu as the Emacs icon.
+Do not display the Emacs icon.
 @end table
 
   Most window managers allow you to ``iconify'' (or ``minimize'') an
index d30f7e4..c2e6526 100644 (file)
@@ -169,11 +169,10 @@ with the class that it belongs to:
 @item @code{background} (class @code{Background})
 Background color name.
 
-@ifnottex
 @item @code{bitmapIcon} (class @code{BitmapIcon})
-Use a bitmap icon (a picture of a gnu) if @samp{on}, let the window
-manager choose an icon if @samp{off}.
-@end ifnottex
+Tell the window manager to display the Emacs icon if @samp{on}; don't
+do so if @samp{off}.  (The icon is usually shown in the ``taskbar'' on
+a graphical desktop.)
 
 @item @code{borderColor} (class @code{BorderColor})
 Color name for the external border.
index 24108cc..3d3038c 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-18  Chong Yidong  <cyd@stupidchicken.com>
+
+       * frames.texi (Management Parameters): Fix description of
+       icon-type parameter.
+
 2011-09-17  Chong Yidong  <cyd@stupidchicken.com>
 
        * tips.texi (Key Binding Conventions): Don't bind a key sequence
index e799cfa..d619b92 100644 (file)
@@ -779,10 +779,10 @@ Whether deselecting the frame lowers it (non-@code{nil} means yes).
 
 @vindex icon-type, a frame parameter
 @item icon-type
-The type of icon to use for this frame when it is iconified.  If the
-value is a string, that specifies a file containing a bitmap to use.
-Any other non-@code{nil} value specifies the default bitmap icon (a
-picture of a gnu); @code{nil} specifies a text icon.
+The type of icon to use for this frame.  If the value is a string,
+that specifies a file containing a bitmap to use; @code{nil} specifies
+no icon (in which case the window manager decides what to show); any
+other non-@code{nil} value specifies the default Emacs icon.
 
 @vindex icon-name, a frame parameter
 @item icon-name
index 1e110cc..8c223cc 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-18  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xfns.c (Fx_create_frame): Handle the bitmapIcon resource as
+       boolean (Bug#9154).
+
 2011-09-18  Eli Zaretskii  <eliz@gnu.org>
 
        * xdisp.c (display_line): Record maximum and minimum buffer
index 998c803..913cde7 100644 (file)
@@ -3369,7 +3369,7 @@ This function is an internal primitive--use `make-frame' instead.  */)
   /* We need to do this after creating the X window, so that the
      icon-creation functions can say whose icon they're describing.  */
   x_default_parameter (f, parms, Qicon_type, Qt,
-                      "bitmapIcon", "BitmapIcon", RES_TYPE_SYMBOL);
+                      "bitmapIcon", "BitmapIcon", RES_TYPE_BOOLEAN);
 
   x_default_parameter (f, parms, Qauto_raise, Qnil,
                       "autoRaise", "AutoRaiseLower", RES_TYPE_BOOLEAN);