initialServerResources = pPad->xrdb;
initialServerResources.server = False; /* so window will be mapped */
initialServerGeometry = pPad->geometry;
+ if(pPad->xrdb.workspaceList)
+ pPad->xrdb.workspaceList = strdup(pPad->xrdb.workspaceList);
+ if(pPad->xrdb.session)
+ pPad->xrdb.session = strdup(pPad->xrdb.session);
+ pPad->geometry = strdup(pPad->geometry);
}
/* Set some initial Editor instance values */
ttdt_subcontract_manage(msg,
pStatusCB,
NULL,
- (void *) ((int) pPad->xrdb.blocking));/* client data */
+ (void *) ((XtArgVal) pPad->xrdb.blocking));/* client data */
/* Add pArgs to msg using tt_message_context_set */
SetupLoadArgs(msg, pPad);
void
exitCB(Widget w, XtPointer callData, XtPointer clientData)
{
- exit((int) clientData);
+ exit((XtArgVal) clientData);
}
/************************************************************************
XtFree(pPad->geometry );
pPad->xrdb = initialServerResources;
- pPad->geometry = initialServerGeometry;
/* -----> duplicate resource strings */
if (initialServerResources.workspaceList != (char *)NULL)
template = (GETMESSAGE(7,10, message_string2));
- fprintf (stderr, template);
+ fprintf (stderr, "%s", template);
exit (0);
}