3 * Rob Zimmermann. All rights reserved.
5 * Keith Bostic. All rights reserved.
7 * See the LICENSE file for redistribution information.
13 static const char sccsid
[] = "$Id: m_prompt.c,v 8.6 1996/12/18 10:26:59 bostic Exp $ (Berkeley) $Date: 1996/12/18 10:26:59 $";
16 #include <sys/types.h>
17 #include <sys/queue.h>
20 #include <X11/Intrinsic.h>
21 #include <Xm/MessageB.h>
23 #include <bitstring.h>
28 #include "../common/common.h"
29 #include "../ipc/ip.h"
33 void vi_fatal_message( parent
, str
)
37 Widget db
= XmCreateErrorDialog( parent
, "Fatal", NULL
, 0 );
38 XmString msg
= XmStringCreateSimple( str
);
40 XtVaSetValues( XtParent(db
),
45 XmNmessageString
, msg
,
48 XtAddCallback( XtParent(db
), XmNpopdownCallback
, __vi_cancel_cb
, 0 );
50 XtUnmanageChild( XmMessageBoxGetChild( db
, XmDIALOG_CANCEL_BUTTON
) );
51 XtUnmanageChild( XmMessageBoxGetChild( db
, XmDIALOG_HELP_BUTTON
) );
53 __vi_modal_dialog( db
);
59 void vi_info_message( parent
, str
)
63 static Widget db
= NULL
;
64 XmString msg
= XmStringCreateSimple( str
);
67 db
= XmCreateInformationDialog( parent
, "Information", NULL
, 0 );
69 XtVaSetValues( XtParent(db
),
70 XmNtitle
, "Information",
74 XmNmessageString
, msg
,
77 XtAddCallback( XtParent(db
), XmNpopdownCallback
, __vi_cancel_cb
, 0 );
79 XtUnmanageChild( XmMessageBoxGetChild( db
, XmDIALOG_CANCEL_BUTTON
) );
80 XtUnmanageChild( XmMessageBoxGetChild( db
, XmDIALOG_HELP_BUTTON
) );
82 __vi_modal_dialog( db
);