* details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
** This file contains the routines that control the client/server architecture
** of dtpad and creation of the top level widgets.
**
-** See the comments preceeding main() for a description of the client/server
+** See the comments preceding main() for a description of the client/server
** architecture of dtpad as well as an overview of the routine hierarchy of
** dtpad. The widget hierarchy of dtpad goes something like this:
**
# if !defined(NL_CAT_LOCALE)
# define NL_CAT_LOCALE 0
# endif
-# ifdef __ultrix
-# define _DTPAD_CAT_NAME "dtpad.cat"
-# else /* __ultrix */
static const char catalogName[] = "dtpad";
-# define _DTPAD_CAT_NAME catalogName
-# endif /* __ultrix */
+# define _DTPAD_CAT_NAME catalogName
#endif
* edit window)
*
************************************************************************/
-void
+int
main(
int argc,
char **argv )
} else {
-#ifdef __osf__
-/* Temporary work around for action database problem(platinum BL5 03/29/95). */
- StartDbUpdate((XtPointer) NULL);
-#endif
-
/*--------------------------------------------------------
* Requestor Mode
*
char **argv_l, **c_argv_l;
Editor *pPad;
Arg al[10];
- register int ac;
+ int ac;
Widget foo;
int i;
/* Added for the argument fix*/
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);
Editor *pPad)
{
Arg al[5]; /* arg list */
- register int ac; /* arg count */
+ int ac; /* arg count */
/* Create the title */
pPad->dialogTitle = DialogTitle(pPad);
void
exitCB(Widget w, XtPointer callData, XtPointer clientData)
{
- exit((int) clientData);
+ exit((XtArgVal) clientData);
}
/************************************************************************
XSizeHints *pHints)
{
Arg al[2]; /* arg list */
- register int ac; /* arg count */
+ int ac; /* arg count */
Dimension MBheight;
/* get Dt Editor widget size hints */
Editor *pPad)
{
Arg al[10]; /* arg list */
- register int ac; /* arg count */
+ int ac; /* arg count */
XSizeHints size_hints;
XWMHints *wmhints;
long supplied_return;
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);
}
_DtSimpleError("dtpad", DtWarning, NULL, msg, NULL);
/*
- * if the error occured on the print display we're going to set
+ * if the error occurred on the print display we're going to set
* a variable so that and when the job is done, right before calling
* XpEndJob, we call XpCancelJob, and notify the user.
*/
fprintf(stderr, "X IO Error");
PanicSave();
+
+ /* Man page for XSetIOErrorhandler says this is a fatal error and
+ * should not return */
+ exit(EXIT_FAILURE);
}