ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/crossedit/Cnv/CnvMenu.c
Revision: 1.1
Committed: Fri Feb 3 07:11:45 2006 UTC (18 years, 5 months ago) by root
Content type: text/plain
Branch: MAIN
Branch point for: UPSTREAM
Log Message:
Initial revision

File Contents

# User Rev Content
1 root 1.1 #include <Cnv.h>
2    
3     Widget CnvMenu(String name, Widget par,CnvMenuRec rec[], XtPointer p)
4     {
5     Widget shell, w;
6     int i;
7    
8     shell = XtVaCreatePopupShell (name, simpleMenuWidgetClass, par,
9     NULL);
10    
11     for (i = 0; *rec[i].label; i++) {
12     if (strncmp (rec[i].label, "---", 3)) {
13     w = XtVaCreateManagedWidget
14     (rec[i].label, smeBSBObjectClass, shell, NULL);
15     XtAddCallback (w, XtNcallback, rec[i].func, p);
16     XtInstallAccelerators(par, w);
17     } else
18     XtVaCreateManagedWidget ("line", smeLineObjectClass, shell, NULL);
19     }
20    
21    
22     return shell;
23     }
24    
25     /*** end of CnvMenu.c ***/