3439
3443
char_u *signfile;
3441
3445
XpmAttributes attrs;
3446
XImage *sign = NULL;
3446
3450
* Setup the color substitution table.
3449
3452
if (signfile[0] != NUL && signfile[0] != '-')
3451
sign = (XImage *)alloc(sizeof(XImage));
3454
XpmColorSymbol color[5] =
3454
XpmColorSymbol color[5] =
3457
{"iconColor1", NULL, 0},
3458
{"bottomShadowColor", NULL, 0},
3459
{"topShadowColor", NULL, 0},
3460
{"selectColor", NULL, 0}
3462
attrs.valuemask = XpmColorSymbols;
3463
attrs.numsymbols = 2;
3464
attrs.colorsymbols = color;
3465
attrs.colorsymbols[0].pixel = gui.back_pixel;
3466
attrs.colorsymbols[1].pixel = gui.norm_pixel;
3467
status = XpmReadFileToImage(gui.dpy, (char *)signfile,
3457
{"iconColor1", NULL, 0},
3458
{"bottomShadowColor", NULL, 0},
3459
{"topShadowColor", NULL, 0},
3460
{"selectColor", NULL, 0}
3462
attrs.valuemask = XpmColorSymbols;
3463
attrs.numsymbols = 2;
3464
attrs.colorsymbols = color;
3465
attrs.colorsymbols[0].pixel = gui.back_pixel;
3466
attrs.colorsymbols[1].pixel = gui.norm_pixel;
3467
status = XpmReadFileToImage(gui.dpy, (char *)signfile,
3468
3468
&sign, NULL, &attrs);
3472
/* Sign width is fixed at two columns now.
3473
if (sign->width > gui.sign_width)
3474
gui.sign_width = sign->width + 8; */
3480
EMSG(_(e_signdata));
3471
/* Sign width is fixed at two columns now.
3472
if (sign->width > gui.sign_width)
3473
gui.sign_width = sign->width + 8; */
3476
EMSG(_(e_signdata));
3485
3479
return (void *)sign;