version 1.7 | | version 1.8 |
---|
| | |
FontSize=24; | | FontSize=24; |
CnvInitialize(self->shell); | | CnvInitialize(self->shell); |
| | |
if (ReadImages(self->display, &pixmaps, &masks, &colormap, displaymode)) { | | |
/* We really should do something better than this */ | | |
fprintf(stderr,"Not enough space in colormap - switch colormap.\n"); | | |
/* exit(1);*/ | | |
} | | |
XtVaSetValues(self->shell, XtNcolormap, colormap, NULL); | | |
| | |
/*** creating ***/ | | /*** creating ***/ |
sprintf(path,"%s/%s",settings.datadir,settings.mapdir); | | sprintf(path,"%s/%s",settings.datadir,settings.mapdir); |
| | |
Layout(self); | | Layout(self); |
XtRealizeWidget (self->shell); | | XtRealizeWidget (self->shell); |
XtRealizeWidget(self->clip->shell); | | XtRealizeWidget(self->clip->shell); |
| | /* I move this down here because I want all the widgets to get their |
| | * colors before the images hog all of them. |
| | */ |
| | if (ReadImages(self->display, &pixmaps, &masks, &colormap, displaymode)) { |
| | /* We really should do something better than this */ |
| | fprintf(stderr,"Not enough space in colormap - switch colormap.\n"); |
| | /* exit(1);*/ |
| | } |
| | XtVaSetValues(self->shell, XtNcolormap, colormap, NULL); |
AppUpdate(self); | | AppUpdate(self); |
return self; | | return self; |
} | | } |