The default icon was broken since the addition of XPM support (May '03).

This fixes it for 2.7. Now to figure out how _I_ broke it in pre-2.8.
This commit is contained in:
William McBrine
2006-02-15 07:46:36 +00:00
parent a85610f8e6
commit 59fdf48d0c

View File

@@ -25,7 +25,7 @@
#ifdef PDCDEBUG
const char rcsid_x11 =
"$Id: x11.c,v 1.32 2006/02/04 20:40:27 wmcbrine Exp $";
"$Id: x11.c,v 1.33 2006/02/15 07:46:36 wmcbrine Exp $";
#endif
extern AppData app_data;
@@ -590,7 +590,7 @@ int XCursesSetupX(char *display_name, int argc, char *argv[])
XCursesGetIcon();
#ifdef HAVE_XPM_H
if (XCURSESPIXMAPFILE != NULL)
if (XCURSESPIXMAPFILE != NULL && strcmp(XCURSESPIXMAPFILE, "") != 0)
XtVaSetValues(topLevel, XtNminWidth, minwidth,
XtNminHeight, minheight, XtNiconPixmap,
icon_pixmap, XtNiconMask, icon_pixmap_mask, NULL);