-
-#ifdef __osf__
-
-/*************************************<->*************************************
- *
- * WarnNewProfile()
- *
- *
- * Description:
- * -----------
- * Warn the user that a new .dtprofile has just been added to their $HOME
- * directory, indicating a need to edit it and their .login/.profile files.
- *
- *
- * Inputs:
- * ------
- *
- *
- * Outputs:
- * -------
- * None.
- *
- *
- * Comments:
- * --------
- *
- *************************************<->***********************************/
-int
-WarnNewProfile( void )
-{
- int i;
- XmString newProfileString;
- String tmpString;
-
- newProfileString = XmStringCreateLocalized(((char *)GETMESSAGE(18, 99,
- "The new file '.dtprofile' has been added to your home directory.\n\
-\n\
- Follow the instructions in this file to ensure that when you log in\n\
- again your '.login' or '.profile' file will be activated and \n\
- that it will interact correctly with CDE. \n\
-\n\
- For additional information, see the CDE Advanced User's and System\n\
- Administrator's Guide.")));
-
-
- /*
- * Now create the dialog box
- */
- i = 0;
- tmpString = GETMESSAGE(18, 37, "Action Required");
- XtSetArg(uiArgs[i], XmNmessageString, newProfileString);i++;
- XtSetArg(uiArgs[i], XmNallowShellResize, True); i++;
- XtSetArg(uiArgs[i], XmNdialogStyle, XmDIALOG_SYSTEM_MODAL); i++;
- XtSetArg(uiArgs[i], XmNmessageAlignment, XmALIGNMENT_BEGINNING); i++;
- XtSetArg(uiArgs[i], XmNtitle, tmpString); i++;
- XtSetArg(uiArgs[i], XmNokLabelString, smDD.okString); i++;
- XtSetArg(uiArgs[i], XmNautoUnmanage, False); i++;
- smDD.newProfile = XmCreateWarningDialog(smGD.topLevelWid,
- "newProfileDialog",
- uiArgs, i);
-
- XtSetArg(uiArgs[i], XmNuseAsyncGeometry, True);i++;
- XtSetValues(XtParent(smDD.newProfile), uiArgs, i);
-
- XtAddCallback (XtParent(smDD.newProfile),
- XmNpopupCallback, DialogUp, NULL);
- XtUnmanageChild(XmMessageBoxGetChild(smDD.newProfile,
- XmDIALOG_HELP_BUTTON));
- XtUnmanageChild(XmMessageBoxGetChild(smDD.newProfile,
- XmDIALOG_CANCEL_BUTTON));
-
- /*
- * Now add in the callback and get out of here
- */
- XtAddCallback (smDD.newProfile, XmNokCallback,
- SimpleOK, smDD.newProfile);
- XmStringFree(newProfileString);
-
- XtManageChild(smDD.newProfile);
-
- return(0);
-} /* END OF FUNCTION WarnNewProfile */
-
-
-#endif
-
-