    Do not provide window icons.

    This is suitable for CDE systems where the Window Manager can provide a nice
    color icon, but only if the application hasn't supplied its own (or so I
    gather).

    I assume that a CDE implementation will be using the CDE DnD patch, hence the
    use of the NEDIT_DT_DRAGANDDROP definition flag.

diff -r -U5 nedit_official nedit_mod
diff -r -U5 nedit_official/source/window.c nedit_mod/source/window.c
--- nedit_official/source/window.c	2004-10-18 15:27:25.000000000 -0400
+++ nedit_mod/source/window.c	2004-12-06 17:58:24.140460000 -0500
@@ -2866,10 +2866,11 @@
 ** weird about the  XmNiconPixmap resource that prevents it from being set
 ** from the defaults in the application resource database.
 */
 static void addWindowIcon(Widget shell)
 { 
+#ifndef NEDIT_DT_DRAGANDDROP /* CDE: leave app icons to window manager dtwm */
     static Pixmap iconPixmap = 0, maskPixmap = 0;
 
     if (iconPixmap == 0) {
         iconPixmap = XCreateBitmapFromData(TheDisplay,
                 RootWindowOfScreen(XtScreen(shell)), (char *)iconBits,
@@ -2878,13 +2879,15 @@
                 RootWindowOfScreen(XtScreen(shell)), (char *)maskBits,
                 iconBitmapWidth, iconBitmapHeight);
     }
     XtVaSetValues(shell, XmNiconPixmap, iconPixmap, XmNiconMask, maskPixmap,
             NULL);
+#endif /* #ifndef NEDIT_DT_DRAGANDDROP */
 }
 void AddSmallIcon(Widget shell)
 { 
+#ifndef NEDIT_DT_DRAGANDDROP /* CDE: leave app icons to window manager dtwm */
     static Pixmap iconPixmap = 0, maskPixmap = 0;
 
     if (iconPixmap == 0) {
         iconPixmap = XCreateBitmapFromData(TheDisplay,
                 RootWindowOfScreen(XtScreen(shell)), (char *)n_bits,
@@ -2893,10 +2896,11 @@
                 RootWindowOfScreen(XtScreen(shell)), (char *)n_mask,
                 n_width, n_height);
     }
     XtVaSetValues(shell, XmNiconPixmap, iconPixmap,
             XmNiconMask, maskPixmap, NULL);
+#endif /* #ifndef NEDIT_DT_DRAGANDDROP */
 }
 
 /* 
 ** Create pixmap per the widget's color depth setting. 
 **
