On Tue, 20 Oct 1998 08:33:33 -0700
John Benninghoff <johnb_at_netscape.com>
wrote concerning 'Re: FVWM: Hiding Icon images and Icon text seperately':
> Richard Lister wrote:
> >
> >
> > I used to do exactly this, by saying something like:
> >
> > Style "*" Icon none
> >
> > where "none" doesn't exist as a pixmap in your path.
>
> This works for most applications. Thanks. It still fails for Netscape
> but I am looking into the X resource to modify to make it work.
Aha! It's been a long time since I used this stuff (I use FvwmIconMan
now), but I just dug back into some of my old code. The following patch
should do the trick for you. Apply it to fvwm/icons.c, then say:
Style "*" Icon NoPixmap
to override the icon set by the application.
I really thought the patch had been included into the distribution
by Chuck back around 2.0.44.
Brady ... want to stick it into the 2.0.47 beta? It's pretty trivial.
Anyway, here it is:
--- fvwm/icons.c.orig Sun Jun 9 20:57:11 1996
+++ fvwm/icons.c Thu Jun 13 10:57:54 1996
_at_@ -85,6 +85,14 @@
(tmp_win->wmhints)&&(tmp_win->wmhints->flags & IconPixmapHint))
GetIconBitmap(tmp_win);
+ /* Allow override of application icon using 'Icon NoPixmap' */
+ if ( (tmp_win->icon_bitmap_file != NULL) &&
+ !(strncasecmp(tmp_win->icon_bitmap_file, "NoPixmap", 8)) ) {
+ tmp_win->icon_p_height = 0;
+ tmp_win->icon_p_width = 0;
+ }
+
+
/* figure out the icon window size */
if (!(tmp_win->flags & NOICON_TITLE)||(tmp_win->icon_p_height == 0))
{
Cheers
Ric
Richard J Lister, Georgetown Institute for Cognitive and Computational Sciences
Georgetown University Medical Center, Washington, DC 20007, USA
Phone: +1 202-687 2878
Email: ric_at_giccs.georgetown.edu
Web:
http://www.giccs.georgetown.edu/~ric/
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Tue Oct 20 1998 - 10:50:27 BST