ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/crossedit/Cnv/CnvMenu.c
Revision: 1.1.1.1 (vendor branch)
Committed: Fri Feb 3 07:11:45 2006 UTC (18 years, 5 months ago) by root
Content type: text/plain
Branch: UPSTREAM
CVS Tags: UPSTREAM_2006_03_15, LAST_C_VERSION, UPSTREAM_2006_02_22, difficulty_fix_merge_060810_2300, UPSTREAM_2006_02_03
Branch point for: difficulty_fix
Changes since 1.1: +0 -0 lines
Log Message:
initial import

File Contents

# Content
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 ***/