From xemacs-m  Sun Feb  9 20:28:10 1997
Received: from xemacs.cs.uiuc.edu (localhost [127.0.0.1])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id UAA26060;
	Sun, 9 Feb 1997 20:28:10 -0600 (CST)
Message-Id: <199702100228.UAA26060@xemacs.org>
To: pez@dwwc.com
cc: xemacs-beta@xemacs.org
Subject: Re: x-set-screen-icon-pixmap 
In-reply-to: Your message of "Sun, 09 Feb 1997 21:02:22 EST."
             <199702100202.VAA06652@localhost.interport.net> 
Date: Sun, 09 Feb 1997 20:28:09 -0600
From: Chuck Thompson <cthomp@xemacs.org>

    Peter> I started to write a really long-winded email griping about
    Peter> how FREAKING complicated it is do find out how to set the
    Peter> icon for a XEmacs frame, but I'm going to leave it as an
    Peter> exercise to the reader.  Start with the following code and
    Peter> try to remove the two references to obsolete functions:

    Peter> (x-set-screen-icon-pixmap (selected-frame) (make-pixmap "foo.xpm"))

    Peter> Come back in 4 hours when you're done and let me know how much hair
    Peter> you have left.

    Peter> Why are things now 100 times more complicated than the simple
    Peter> straight forward code above?


Only took about 5 minutes but I didn't rely on just the
documentation.  In this particular case x-set-screen-icon-pixmap
should absolutely be marked obsolete but I think it would be
reasonable to unobsolete x-set-frame-icon-pixmap.

The equivalent unobsolete code is:

(set-glyph-image frame-icon-glyph (glyph-image-instance (make-glyph "foo.xpm")) (selected-frame))


			-Chuck

