changeset 3347:53c89f73e85a

(Fx_create_frame): Use bitmapIcon, not iconType.
author Richard M. Stallman <rms@gnu.org>
date Mon, 31 May 1993 07:21:10 +0000
parents 0047b8501fce
children 69239557a899
files src/xfns.c
diffstat 1 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Mon May 31 07:19:04 1993 +0000
+++ b/src/xfns.c	Mon May 31 07:21:10 1993 +0000
@@ -1750,7 +1750,7 @@
   /* 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, Qnil,
-		       "iconType", "IconType", symbol);
+		       "bitmapIcon", "BitmapIcon", symbol);
 
   x_default_parameter (f, parms, Qauto_raise, Qnil,
 		       "autoRaise", "AutoRaiseLower", boolean);
@@ -2184,11 +2184,15 @@
       FRAME_PTR f = NILP (frame) ? selected_frame : XFRAME (frame);
       int face_id = face_name_id_number (f, face);
 
-      if (face_id < 0 || face_id > FRAME_N_FACES (f))
-	face_id = 0;
-      size_ref = FRAME_FACES (f) [face_id]->font;
-      if (size_ref == (XFontStruct *) (~0) || size_ref == NULL)
+      if (face_id < 0 || face_id >= FRAME_N_FACES (f)
+	  || FRAME_FACES (f) [face_id] == 0)
 	size_ref = f->display.x->font;
+      else
+	{
+	  size_ref = FRAME_FACES (f) [face_id]->font;
+	  if (size_ref == (XFontStruct *) (~0))
+	    size_ref = f->display.x->font;
+	}
     }
 
   BLOCK_INPUT;